I have read your code and steps carefully and I am not currently setting up CPLMASK nor running create_oasis_grids_for_wrf. I’m not sure if that’s what caused the error. And the CROCO tutorials said “the CPLMASK creation may also be performed automatically in the coupling tools”. I’m not sure exactly how to set it.
And The WRF I used was not supplied by croco.
==============================new============================================
I modified the netcdf path in jobcomp, now log.pile is as follows, does that mean there are no errors in this part? submitjob01.log And the following is the output log file for submitjob.sh. log.compil02.txt
Since I was running the WRF-CROCO model in a cluster, I installed nco using conda. But after I load the nco environment, this problem occurs. I have attached all log.compil. Also, netcdf will load the nco dependent path ‘……/miniconda/env/nco/lib’, and my modification of the netcdf path in myenv_mypath.sh does not work.
mod_oasis_coupler_mp_oasis_coupler_setup_': mod_oasis_coupler.F90:(.text+0xb2ed): undefined reference to netcdf_mp_nf90_open_’
The following is the output log file for submitjob.sh. submitjob.log
=================================modified======================================
I modified the netcdf path in jobcomp, now log.pile is as follows, does that mean there are no errors in this part? log.compil02.txt
And the following is the output log file for submitjob.sh. submitjob01.log
Thank you for your advice. Since I was running the WRF-CROCO model in a cluster, I installed nco using conda. But after I load the nco environment, the new problem occurs.
Coupling is very sensitive to netcdf libraries.
I think that your nco is overwriting the paths to the original netcdf librarry you used to compile the models, and that’s why you have an error.
You need nco for preprocessing, but then you need to unload the nco module, and come back to the original netcdf library you used to compile when you want to run.
The toolbox is set up of that, but to use this functionality, you need to define your nco module in an environment variable named ‘ncomod’ in the myenv_mypath.sh file :
export ncomod=‘your_nco_module’
Then, the scripts are prepared to load this module when needed, and unload it after, to avoid any conflicts with the netcdf library that you need for running (same than that you compiled with).
So basically, you should have at the beginning of myenv_mypath.sh something that looks like this example (with your own modules):
Hello, I have also solved this problem by modifying jobcomp. I would like to know if there is any problem in the following steps. Since I cannot upload files, I have added them in the new reply below.