Closed kdraeder closed 1 year ago
A related issue: the build fails later with /glade/work/raeder/Models/cesm_dflt_2023-4-20/components/cam/src/cpl/nuopc/atm_import_export.F90(83): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [SHR_LIGHTNING_COUPLING_MOD]
/glade/work/raeder/Models/cesm_dflt_2023-4-20/components/cam/src/cpl/nuopc/atm_import_export.F90(83):
error #6580: Name in only-list does not exist or is not accessible.
[SHR_LIGHTNING_COUPLING_READNL]
Should I open this as a separate issue?
the cam6_3_108
tag requires cmeps0.14.24
; I don't know if you have access to the CESM plans database, but when it was added to cesm2_3_alpha12g
, the 108 tag noted that requirement:
If you update CMEPS in your sandbox, I would expect all of the errors you have reported to go away.
Thanks for the tip!
I updated CMEPS, but still get an error in atm_import_export.F90(83):
error #7002: Error in opening the compiled module file. Check INCLUDE paths. [SHR_LIGHTNING_COUPLING_MOD]
I haven't been able to find the include paths, unless those are the -I arguments to mpif90.
I see components/cmeps/cesm/nuopc_cap_share/shr_lightning_coupling_mod.F90 and components/cmeps/cesm/nuopc_cap_share is in the csm_share mpif90 call. The only 'lightning' that shows up in my .../bld directory are atm/obj/mo_lightning.* Should I look somewhere else?
Interesting, I cloned your case and started a build, and I have
$ find . -name *lightn*
./bld/intel/mpt/nodebug/nothreads/nuopc/nuopc/esmf/c3a1l1i1o1r1/include/shr_lightning_coupling_mod.mod
./bld/intel/mpt/nodebug/nothreads/nuopc/nuopc/esmf/c3a1l1i1o1r1/csm_share/shr_lightning_coupling_mod.o
./bld/intel/mpt/nodebug/nothreads/nuopc/nuopc/esmf/c3a1l1i1o1r1/csm_share/shr_lightning_coupling_mod.optrpt
./bld/intel/mpt/nodebug/nothreads/nuopc/nuopc/esmf/c3a1l1i1o1r1/csm_share/shr_lightning_coupling_mod.mod
./bld/lib/include/shr_lightning_coupling_mod.mod
Did you update your sandbox and just re-run ./case.build
? It might be worth trying ./case.build --clean-all
to remove your bld
directory and then ./case.build
should find the new module(s) in CMEPS.
Doh! That did it. Thanks for the reminder. I misinterpreted the --help and only used clean-all when I thought I was replacing an existing executable.
I've checked out cmeps0.14.23 as part of cesm2_3_alpha12e-1-g02ed0b8 (components/cam updated with tags cam6_3_108 and _109). case.build failed when build-namelist (buildnml?) could not find atm_controls_lightning:
There's a note in components/cam/doc/ChangeLog about that variable being added to the drv_in namelist, but it's not in this namelist_definition_drv_flds.xml. I don't see any mention of it in the CMEPS github. Adding the following seems to fix it;
Related, but not crucial;
components/cam/bld/namelist_files/namelist_definition.xml I think the default value of atm_provides_lightning should be "Set by build-namelist"
I don't know whether more needs to be done.