- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Why is the compiler expecting only 2 entries when I have specified length 7?
program ttt
implicit none
CHARACTER(16) :: CCPROP(7) = &
( 'Viscosity', 'Therm Cond', 'Elec Cond', 'Surf Tension', 'Intfacial Tens', 'Self Diff', 'Mutual Diff' )
end
D:\test>ifort char.for /free
Intel(R) Visual Fortran Compiler Professional for applications running on IA-32, Version 11.1 Build 20100414 Package ID: w_cprof_p_11.1.065
Copyright (C) 1985-2010 Intel Corporation. All rights reserved.
char.for(4): error #5082: Syntax error, found ',' when expecting one of: )
( 'Viscosity', 'Therm Cond', 'Elec Cond', 'Surf Tension', 'Intfacial Tens', 'Self Diff', 'Mutual Diff' )
---------------------------^
compilation aborted for char.for (code 1)
I thought this syntax was valid, but changed to DATA and it worked OK. Is this syntax not valid?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
![](/skins/images/DCC883141309A464C31AD18F1D8B9C6A/responsive_peak/images/icon_anonymous_message.png)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page