m_mineter@ed_ac_uk
Member
The documentation says to use: " Fortran compiler with support for Fortran 2003 " .https://escomp.github.io/CESM/release-cesm2/introduction.html
I'm trying to run the cheyenne create_test, but compilation is proving problematic.
With gcc 4.8.5 if I use "-std=f2003" or "fs2008ts" I get many errors of the form
real*4,parameter :: mpeuR4=1.
1
Error: GNU Extension: Nonstandard type declaration REAL*4 at (1)
If I use -std="gnu" (the default) then the errors (in log files from teh cheyenne tests) are of form:
mpif90 -c -I. -I.... 20200625_165900_n87b7t/bld/lib/include -fconvert=big-endian -ffree-line-length-none -ffixed-line-length-none -g -Wall -Og -fbacktrace -ffpe-trap=zero,overflow -fcheck=bounds -std=gnu -DLINUX -DHAVE_MPI -DPIO1 -DFORTRANUNDERSCORE -DNO_R16 -DCPRGNU -DHAVE_SLASHPROC -ffree-form -DUSE_CONTIGUOUS= /exports/csce/eddie/geos/groups/cesd/CESM/my_cesm_sandbox/components/clm/src/fates/parteh/PRTAllometricCarbonMod.F90
err:
..../my_cesm_sandbox/components/clm/src/fates/parteh/PRTAllometricCarbonMod.F90:230.5:
prt_global => prt_global_ac
1
Error: Different types in pointer assignment at (1); attempted assignment of CLASS(prt_global_type) to TYPE(prt_global_type)
I have yet to find a pattern of flags that works and wonder if a) I need to look harder, or b) I just need a more recent compiler. (Since starting this, intel2017 has become available to me - so i could switch to that)
I attach the compiler config file that I am using at present with gnu. I am aware that it mentions testing with 5,.4 and later gcc.... so guess I need to stop trying with 4.8.5.
Thanks.
I'm trying to run the cheyenne create_test, but compilation is proving problematic.
With gcc 4.8.5 if I use "-std=f2003" or "fs2008ts" I get many errors of the form
real*4,parameter :: mpeuR4=1.
1
Error: GNU Extension: Nonstandard type declaration REAL*4 at (1)
If I use -std="gnu" (the default) then the errors (in log files from teh cheyenne tests) are of form:
mpif90 -c -I. -I.... 20200625_165900_n87b7t/bld/lib/include -fconvert=big-endian -ffree-line-length-none -ffixed-line-length-none -g -Wall -Og -fbacktrace -ffpe-trap=zero,overflow -fcheck=bounds -std=gnu -DLINUX -DHAVE_MPI -DPIO1 -DFORTRANUNDERSCORE -DNO_R16 -DCPRGNU -DHAVE_SLASHPROC -ffree-form -DUSE_CONTIGUOUS= /exports/csce/eddie/geos/groups/cesd/CESM/my_cesm_sandbox/components/clm/src/fates/parteh/PRTAllometricCarbonMod.F90
err:
..../my_cesm_sandbox/components/clm/src/fates/parteh/PRTAllometricCarbonMod.F90:230.5:
prt_global => prt_global_ac
1
Error: Different types in pointer assignment at (1); attempted assignment of CLASS(prt_global_type) to TYPE(prt_global_type)
I have yet to find a pattern of flags that works and wonder if a) I need to look harder, or b) I just need a more recent compiler. (Since starting this, intel2017 has become available to me - so i could switch to that)
I attach the compiler config file that I am using at present with gnu. I am aware that it mentions testing with 5,.4 and later gcc.... so guess I need to stop trying with 4.8.5.
Thanks.