DOI-USGS / COAWST

COAWST modeling system git repository
Other
108 stars 51 forks source link

Infinite loop in makefile when compiling SWAN only application (COAWST v3.5) #105

Open demonsyang-github opened 2 years ago

demonsyang-github commented 2 years ago

Hi all,

I am using COAWST v3.5 with CICE coupled into the model. I have no problem to compile the model with WRF-ROMS(CICE)-SWAN, ROMS(CICE)-SWAN. However, I am having problem when I try to compile the SWAN-only application. That is, I only have this line in my header file, similar to Inlet_test/Swanonly/inlet_test.h

define SWAN_MODEL

After executing coawst.bash, it will show "cp make macros.mk" line repeatedly:

Clean old files.... svn: E155007: '/public1/home/ljp/cyang/Control/COAWST-CICE_swanonly' is not a working copy svn: E155007: '/public1/home/ljp/cyang/Control/COAWST-CICE_swanonly' is not a working copy rm -f -r core *.ipo ./Build /public1/home/ljp/make_macros.mk Clean WRF.... svn: E155007: '/public1/home/ljp/cyang/Control/COAWST-CICE_swanonly' is not a working copy svn: E155007: '/public1/home/ljp/cyang/Control/COAWST-CICE_swanonly' is not a working copy cp -f /public/software/mathlib/netcdf/4.4.1/intel_parallel/include/netcdf.mod ./Build cp -f /public/software/mathlib/netcdf/4.4.1/intel_parallel/include/typesizes.mod ./Build cp -p /public1/home/ljp/make_macros.mk ./Build svn: E155007: '/public1/home/ljp/cyang/Control/COAWST-CICE_swanonly' is not a working copy svn: E155007: '/public1/home/ljp/cyang/Control/COAWST-CICE_swanonly' is not a working copy cp -p /public1/home/ljp/make_macros.mk ./Build svn: E155007: '/public1/home/ljp/cyang/Control/COAWST-CICE_swanonly' is not a working copy svn: E155007: '/public1/home/ljp/cyang/Control/COAWST-CICE_swanonly' is not a working copy cp -p /public1/home/ljp/make_macros.mk ./Build svn: E155007: '/public1/home/ljp/cyang/Control/COAWST-CICE_swanonly' is not a working copy svn: E155007: '/public1/home/ljp/cyang/Control/COAWST-CICE_swanonly' is not a working copy cp -p /public1/home/ljp/make_macros.mk ./Build [......]

I added some printed messages in coawst.bash:

if [ $clean -eq 1 ]; then echo "Clean old files...." make clean fi

export WRF_DIR=${MY_ROMS_SRC}/WRF if [ $cleanwrf -eq 1 ]; then echo "Clean WRF...." make wrfclean cd ${MY_ROMS_SRC} fi echo "Building WRF...." make wrf [.....]

I also found that:

  1. sources is an empty variable in makefile but ${modules} does have SWAN/Src Master
  2. ${SCRATCH}/MakeDepend is empty file.
  3. After I killed stucked coawst.bash, makefile will be updated and the file dependency of SWAN/Src is at the end of updated makefile

I tested with the latest COAWST (v3.7) and I had no problem to compile the SWAN-only application.

Do you have any suggestions on my situation? (makefile is attatched)

Thank you very much.

makefile.zip

jcwarner-usgs commented 2 years ago

i am not sure. we dont distribute that ICE model anymore in coawst because the developers were not supporting it any more. If you want to run swan only, just use the newer version. i dont have the time to go back to older versions. sorry. j