Welcome to the new DiscussCESM forum!
We are still working on the website migration, so you may experience downtime during this process.

Existing users, please reset your password before logging in here: https://xenforo.cgd.ucar.edu/cesm/index.php?lost-password/

How to output orbital information to history files by editing shr_orb_mod.F90

pybl

Binghan Liu
New Member
I try to print the 1D variable 'eccf' defined in the shr_orb_mod.F90 to history file.

The first method I try is: 'use spmd_utils, only: masterproc', then write before 'end subroutine' of the variable 'eccf' defined:
if (masterproc) then
write(s_logunit,*) 'Eccf = ',eccf
end if

but I am stuck on error message #7002, check INCLUDE path. Any idea or hints to solve this problem?
I am new to Fortran, any help is appreciated.

1: shr_orb_mod.F90 can be seen at: https://www.cesm.ucar.edu/models/at...-browser/html_code/share/shr_orb_mod.F90.html
2: 'eccf' is defined at the subroutine 'shr_orb_decl'
 

pybl

Binghan Liu
New Member
Here is the detailed error message:

/home/home02/pybl/cesm2/cases/b.e21.BWma1850.f19_g17.eccf_test.001/SourceMods/src.share/shr_orb_mod.F90(8): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [SPMD_UTILS]


use spmd_utils, only: masterproc
 
Top