Open wjlyx opened 2 months ago
i have seen this error. https://github.com/DOI-USGS/COAWST/issues/15 when you built the wrf+roms, can you send me that build text. not the build_coawst.sh, but the text while it builds. you can do scrip build.log ./build_coawst.sh -j 5 exit and then send the build.log here.
i have seen this error. #15 when you built the wrf+roms, can you send me that build text. not the build_coawst.sh, but the text while it builds. you can do scrip build.log ./build_coawst.sh -j 5 exit and then send the build.log here.
wrf+roms build.txt
ok. you selected gfortran for WRF SFC = gfortran DM_FC = mpif90 -f90=$(SFC) BYTESWAPIO = -fconvert=big-endian -frecord-marker=4
and your build for roms is also using mpif90. So in the ROMS/Compilers/Linux-gfortran.mk (i think you are using an older version) but you should have on line 41 FFLAGS := -frepack-arrays -fallow-argument-mismatch and you need to also add the line FFLAGS += -frecord-marker=4 -fconvert=big-endian you can add that right below the other one so it could look like:
FC := gfortran
FFLAGS := -frepack-arrays -fallow-argument-mismatch
FFLAGS += -frecord-marker=4 -fconvert=big-endian
and try that.
@jcwarner-usgs @wjlyx
I can confirm that this change works when modifying the COAWST/Compilers/Linux-gfortran.mk file.
Simple way to do it is using a sed command like this.
cd "${COAWST_FOLDER}"/COAWST/Compilers
sed -i '41a\ FFLAGS += -frecord-marker=4 -fconvert=big-endian' Linux-gfortran.mk
When I encountered this problem while running the wrf-roms coupling, I tried searching for solutions to similar issues in previous questions. However, it seems that a solution is not readily available. Can you please help me find a way to solve it? 61676err.txt 61676out.txt