You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When compiling code written on Windows, these are some common problems.
GNU Fortran (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0
Long line length is the most common issue and can cause hidden problems.
In some cases there is a long blank string after end of line, remove these.
FIX: split the line and use continuation character.
Suggest using this to find long lines on any file coming from Windows environment:
Logicals comparison error. FIX with eqv replacing eq
co2ctr.f has many errors, many from lines too long, FIX with continuation.
1344 | & phase_nr(2).eq..false. .and.phase_nr(3).eq..false.) then
| 1
Error: Logicals at (1) must be compared with .eqv. instead of .eq.
Windows close argument not supported. FIX by removing dispose argument ie. close(lu)
new module not recognized. FIX by adding to Makefile.depends
varchk_simple_awh.f:17:9:
17 | use commass_AWH
| 1
Fatal Error: Cannot open module file ‘commass_awh.mod’ for reading at (1): No such file or directory
compilation terminated.
Makefile.depends example for modules:
Add modulename.o to files that contain the mod name
Add modulename.mod: filename.o
1296 | call steady(1, 0.0, 0.0)
| 2
1575 | call steady(2,dabs(inflow_thstime),dabs(inen_thstime))
| 1
Error: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(8)/REAL(4)).
When compiling code written on Windows, these are some common problems.
GNU Fortran (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0
Long line length is the most common issue and can cause hidden problems.
In some cases there is a long blank string after end of line, remove these.
FIX: split the line and use continuation character.
Suggest using this to find long lines on any file coming from Windows environment:
Logicals comparison error. FIX with eqv replacing eq
Windows close argument not supported. FIX by removing dispose argument ie. close(lu)
new module not recognized. FIX by adding to Makefile.depends
Makefile.depends example for modules:
Add modulename.o to files that contain the mod name
Add modulename.mod: filename.o
New files with modules will need to be added to Makefile.depends.
Edit Makefile.depends
The text was updated successfully, but these errors were encountered: