Ask Your Question

Why I cannot compile the TOY model?

asked 2023-10-20 06:41:06 +0100

yxli gravatar image

Hi everyone! I try to compile the TOY model, but the following error occurs. TOY_MAKE.out File C:\fakepath\toy_make.log MAKEFILE C:\fakepath\Makefile

/home/yxli20/oasis3/MARCONI_oa3-mct_intel/lib/libscrip.a(remap_write.o): In function remap_write_mp_write_remap_csm_': remap_write.f:(.text+0x5dba): undefined reference tonf_put_var_int_' remap_write.f:(.text+0x5de2): undefined reference to nf_put_var_int_' remap_write.f:(.text+0x642f): undefined reference tonf_put_var_double_' remap_write.f:(.text+0x6456): undefined reference to nf_put_var_double_' remap_write.f:(.text+0x65a7): undefined reference tonf_close_' remap_write.f:(.text+0x6f96): undefined reference to nf_put_var_double_' remap_write.f:(.text+0x6fc3): undefined reference tonf_put_var_int_' remap_write.f:(.text+0x6feb): undefined reference to nf_put_var_int_' remap_write.f:(.text+0x7631): undefined reference tonf_put_var_double_' remap_write.f:(.text+0x7658): undefined reference to nf_put_var_double_' remap_write.f:(.text+0x7695): undefined reference tonf_put_var_double_' /home/yxli20/oasis3/MARCONI_oa3-mct_intel/lib/libscrip.a(netcdf.o): In function netcdf_mod_mp_netcdf_error_handler_': netcdf.F90:(.text+0x7b): undefined reference tonf_strerror_'

edit retag flag offensive close merge delete

3 answers

Sort by » oldest newest most voted

answered 2023-10-25 09:58:48 +0100

swen gravatar image

As mentionned by Andres if you want to couple WRF-WW3-CROCO you don't need the TOY model. However if you want to test the coupling procedure, you can use the TOY which "replace" one of the model you want to couple. It consists of a few fortran routines, that exchange variables with OASIS to mimic a wave or atmosphere model.

This being said, your error during the TOY compilation looks like a problem of library path for netcdf. You absolutely need to compile the TOY with the same netcdf libraries and compilers with which you have compiled OASIS, and you need to have environment variables PATH and LD_LIBRARY_PATH correctly set to point to these netcdf library and compilers. This is generally done with the file which defined all the paths and environment variables and that should then be sourced before using the coupling script toolbox.

edit flag offensive delete link more

answered 2023-10-24 14:41:05 +0100

andres gravatar image

Hi, if you are going to couple WW3, CROCO, and WRF, you don´t need the toy model. It is mostly used to test the coupling, replacing one of the real models.

Your compilation of OASIS went ok?

edit flag offensive delete link more


Hello, I compiled OASIS according to croco tutorials. The ~/compile_oasis3-mct directory include related files, so I think it was installed successfully. And I am trying to coupling WRF and CROCO. In the provided run_wps.bash, I found that the map_proj is mercator, can I use lambert prrojection?

yxli gravatar imageyxli ( 2023-10-25 06:45:59 +0100 )edit

And if I use the lambert projection, will it affect the subsequent coupling?

yxli gravatar imageyxli ( 2023-10-25 06:46:35 +0100 )edit

no problem in using another projection, OASIS will deal with this grid when performing interpolations

swen gravatar imageswen ( 2023-10-25 09:59:20 +0100 )edit

Thank you!

yxli gravatar imageyxli ( 2023-10-25 11:26:29 +0100 )edit

Thank you! And I meet another question when I try to coupled WRF and CROCO.

yxli gravatar imageyxli ( 2023-10-25 15:44:03 +0100 )edit

answered 2023-10-20 06:47:56 +0100

yxli gravatar image

Whether or not the TOY model is successfully compiled is independent of advanced coupling of WRF-CROCO-WW3?

edit flag offensive delete link more


Yes, you don't need the TOY model if you are using CROCO and WW3 and WRF. It is used manily for testing, as Swen said.

andres gravatar imageandres ( 2023-10-25 14:53:17 +0100 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2023-10-20 06:41:06 +0100

Seen: 26 times

Last updated: Oct 25