Scheduled Downtime
On Tuesday 24 October 2023 @ 5pm MT the forums will be in read only mode in preparation for the downtime. On Wednesday 25 October 2023 @ 5am MT, this website will be down for maintenance and expected to return online later in the morning.
Normal Operations
The forums are back online with normal operations. If you notice any issues or errors related to the forums, please reach out to help@ucar.edu

CICE6.1 Compile error

mlanderson

ML Anderson
New Member
Hi,
I am new to CICE, I am trying to run it on my mac using conda, created case1, however, when trying to build case1 using cice.build, I got the compile error on:
cicecore/shared/ice_kinds_mod.F90: can't open module file 'icepack_intfc.mod' for reading at (1): no such file or directory.

I tried both the master and 6.1 branch, got the same error.

Can you please help!

Thanks,
Michael
 

mlanderson

ML Anderson
New Member
More detailed error from screenshot:

I setup the case this way:
./cice.setup -m conda -e macos -p 1x1 -c ~/cice-dirs/cases/case1
./cice.setup:
ICE_SANDBOX = /Users/jack/CICE
ICE_CASENAME = case1
ICE_CASEDIR = /Users/jack/cice-dirs/cases/case1
ICE_MACHINE = conda
ICE_COMPILER = macos
ICE_RUNDIR = /Users/jack/cice-dirs/runs/case1
ICE_PES = 1x1
ICE_GRID = gx3 (100x116) blocksize=100x116x1
ICE_DECOMP = cartesian slenderX2
adding namelist mods set_nml.gx3
running parse_settings.sh
running parse_namelist.sh
running parse_namelist_from_env.sh
running cice.run.setup.csh
running cice.batch.csh (creating cice.run)
running cice.launch.csh
./cice.setup done

Now I run build on case1:
(cice) Jacks-MBP:CICE jack$ cd ~/cice-dirs/cases/case1
(cice) Jacks-MBP:case1 jack$ ./cice.build
fi: Command not found.
./cice.build:
ICE_GRID = gx3
ICE_NTASK = 1
ICE_NTHRD = 1
ICE_CPPDEFS = -Dncdf
Filepath =
/Users/jack/CICE/cicecore/drivers/standalone/cice
/Users/jack/CICE/cicecore/cicedynB/dynamics
/Users/jack/CICE/cicecore/cicedynB/general
/Users/jack/CICE/cicecore/cicedynB/analysis
/Users/jack/CICE/cicecore/cicedynB/infrastructure
/Users/jack/CICE/cicecore/cicedynB/infrastructure/io/io_netcdf
/Users/jack/CICE/cicecore/cicedynB/infrastructure/comm/serial
/Users/jack/CICE/cicecore/shared
/Users/jack/CICE/icepack/columnphysics
building cice > /Users/jack/cice-dirs/runs/case1/compile/cice.bldlog.200707-090814
gmake clean
rm -f *.o *.d *.mod /Users/jack/cice-dirs/runs/case1/cice
gmake cice
:
:
Building dependency for CICE.d

gfortran -c -fconvert=big-endian -fbacktrace -ffree-line-length-none -O2 -ffree-form -DFORTRANUNDERSCORE -Dncdf -I. -I/Users/jack/miniconda3/envs/cice/include /Users/jack/CICE/cicecore/shared/ice_kinds_mod.F90
clang -c -O2 -DFORTRANUNDERSCORE -Dncdf /Users/jack/CICE/cicecore/cicedynB/infrastructure/ice_shr_reprosum86.c
/Users/jack/CICE/cicecore/shared/ice_kinds_mod.F90:13:10:
use icepack_intfc, only: char_len => icepack_char_len
1

Fatal Error: Can't open module file ‘icepack_intfc.mod’ for reading at (1): No such file or directory
compilation terminated.
make: *** [/Users/jack/cice-dirs/cases/case1/Makefile:140: ice_kinds_mod.o] Error 1
make: *** Waiting for unfinished jobs....
./cice.build: COMPILE FAILED,

Thanks so much for the help!

Michael
 
Did you check whether you actually have icepack_intfc.F90 in your directory? It should be under the icepack/columnphysics directory. Since Icepack is a submodule that lives in a separate repository, you have to make sure that you also get Icepack when you clone the cice code. First check whether you have any of the Icepack modules, and we'll go from there.
 

mlanderson

ML Anderson
New Member
Hi Eclare,

Thanks a lot for the help! Yes, I am missing the icepack, after installing icepack, I got everything running.
Howerver, after run, was trying to plot:

(cice) Jacks-MBP:case1 jack$ ./cice.run
:
./cice.run:
:
done ./cice.run

(cice) Jacks-MBP:case1 jack$ python timeseries.py ~/cice-dirs/cases/case1/logs
INFO:__main__:Log file = /Users/jack/cice-dirs/cases/case1/logs/cice.runlog.200707-110942
INFO:__main__:Saving file to total_ice_area_case1.png
INFO:__main__:Saving file to total_ice_extent_case1.png
INFO:__main__:Saving file to total_ice_volume_case1.png
INFO:__main__:Saving file to total_snw_volume_case1.png
INFO:__main__:Saving file to rms_ice_speed_case1.png
total_ice_area_case1.pngtotal_ice_extent_case1.png

The PNGs generated are all empty images, did I miss some setting again here?

Thanks a lot for the help!
Michael
 

mlanderson

ML Anderson
New Member
I don't see anywhere there is a file or path called ice_diag.full_ITD:

(cice) Jacks-MBP:cice-dirs jack$ find . -name "ice_diag*" -print
./runs/case1/compile/ice_diagnostics.mod
./runs/case1/compile/ice_diagnostics.d
./runs/case1/compile/ice_diagnostics_bgc.d
./runs/case1/compile/ice_diagnostics_bgc.mod
./runs/case1/compile/ice_diagnostics_bgc.o
./runs/case1/compile/ice_diagnostics.o
 
Are your running the test suite, or just one or a few test cases? In the test case directory, you should have a file called icepack.settings. That should show a ICE_RUNDIR . I that directory, there should be a logs directory. In that directory, you should have your files needed to generate the plots.
When you tried running timeseries.csh, did you have any error messages?
 

tcraig

Member
As I understand it, you are running CICE. Based on the user guide (3.2. Running CICE — CICE documentation), it looks like you need to point to your run directory. If you are using the default mac conda with a case called case1, that should be

python timeseries.py ~/cice-dirs/runs/case1

It could also be that you need higher frequency output for this to work. You can try modifying your ice_in in your case directory and setting "diagfreq = 1". The plotting tool is grepping thru the log file and plotting diagnostics produced there.
 

mlanderson

ML Anderson
New Member
Hi Tcraig,
Yes, updating diagfreq = 1 did the trick. Now I see plots.

Thanks a lot for the help!
Michael
 
Top