Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wjlyx opened this issue Apr 17, 2024 · 4 comments

Comments

@wjlyx
Copy link

wjlyx commented Apr 17, 2024

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
Copy link
Collaborator

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.

@wjlyx
Copy link
Author

wjlyx commented Apr 18, 2024

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
Copy link
Collaborator

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
Copy link

HathewayWill commented May 26, 2024

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants