DOI-USGS / COAWST

COAWST modeling system git repository
Other
100 stars 48 forks source link

At line 6925 of file module_ra_rrtm.f90 (unit = 10, file = 'RRTM_DATA') Fortran runtime error: End of file #247

Open wjlyx opened 2 months ago

wjlyx commented 2 months ago

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

jcwarner-usgs commented 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.

wjlyx commented 2 months ago

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

jcwarner-usgs commented 2 months ago

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.

HathewayWill commented 1 month ago

@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