-
Notifications
You must be signed in to change notification settings - Fork 6
Description
Environment:
Windows11: Ubuntu 22.04.5 LTS
Compiler: GNUFortran 11.4.0
Build System: GNUMake 4.3
MonoRTM Version: v5.6
Customization: Modified makefile.common in LinuxGNUdbl to include the flag -std=legacy for successful build.
Build Process:
The following build steps were taken to compile MonoRTM v5.6:
1.Modify Makefile:
Edited makefile.common in the LinuxGNUdbl section to add -std=legacy to the FCFLAG line.
2.Run Code:
[ -f MONORTM.IN ] && rm MONORTM.IN
[ -f TAPE3 ] && rm TAPE3
set prefix = ""
echo 'prefix for output files: ' $prefix
echo "---------------------------------------------------------------------"
echo "---------------------------------------------------------------------"
echo " case1 :downwelling; U.S. Standard atmosphere; input: in/MONORTM.IN_MDL_ATM_dn"
ln -s in/MONORTM.IN_MDL_ATM_dn MONORTM.IN
ln -s in/TAPE3_spectral_lines.dat.0_55.v5.0_fast TAPE3
echo "---------------------------------------------------------------------"
echo "---------------------------------------------------------------------"
ls -l MONORTM.IN TAPE3
echo "---------------------------------------------------------------------"
echo "---------------------------------------------------------------------"
time ../monortm_v5.6_linux_gnu_dbl
\rm MONORTM.IN
\rm TAPE3
cp MONORTM.OUT out/MONORTM.OUT
mv MONORTM.OUT out/$prefix{MONORTM.OUT_MDL_ATM_dn}
mv MONORTM.LOG out/$prefix{MONORTM.LOG_MDL_ATM_dn}
mv TAPE7 out/$prefix{MONORTM.TAPE7_MDL_ATM_dn}
Output:
Two distinct outputs were observed after execution:
1.First Output:
prefix for output files:
---------------------------------------------------------------------
---------------------------------------------------------------------
case1 :downwelling; U.S. Standard atmosphere; input: in/MONORTM.IN_MDL_ATM_dn
---------------------------------------------------------------------
---------------------------------------------------------------------
lrwxrwxrwx 1 yuanqi yuanqi 24 Aug 25 16:51 MONORTM.IN -> in/MONORTM.IN_MDL_ATM_dn
lrwxrwxrwx 1 yuanqi yuanqi 42 Aug 25 16:51 TAPE3 -> in/TAPE3_spectral_lines.dat.0_55.v5.0_fast
---------------------------------------------------------------------
---------------------------------------------------------------------
STOP BNDEMI OUTSIDE PHYSICAL RANGE
real 0m0.002s
user 0m0.000s
sys 0m0.002s
mv: cannot stat 'TAPE7': No such file or directory
2.Second Output:
prefix for output files:
---------------------------------------------------------------------
---------------------------------------------------------------------
case1 :downwelling; U.S. Standard atmosphere; input: in/MONORTM.IN_MDL_ATM_dn
---------------------------------------------------------------------
---------------------------------------------------------------------
**********************************
* M O N O R T M *
* Release 5.6 *
**********************************
NUMBER OF PROFILES: 1
INPUTS FROM MONORTM.IN
At line 252 of file ../src/lnfl_mod.f90 (unit = 9, file = 'TAPE3')
Fortran runtime error: Unformatted file structure has been corrupted
Error termination. Backtrace:
#0 0x7ec46e423960 in ???
#1 0x7ec46e4244d9 in ???
#2 0x7ec46e67c8ee in ???
#3 0x7ec46e677b7a in ???
#4 0x64c9d6a69849 in __lnfl_mod_MOD_prlnhd
#5 0x64c9d6a6b54a in __lnfl_mod_MOD_get_lnfl
#6 0x64c9d6a656d3 in __modmmod_MOD_modm
#7 0x64c9d6a712c0 in MAIN__
#8 0x64c9d6a71c9b in main
real 0m0.007s
user 0m0.004s
sys 0m0.003s
Description of Errors:
First Output:
Error message: STOP BNDEMI OUTSIDE PHYSICAL RANGE
This suggests that there might be an issue with the boundary conditions in the model or the data provided.
Second Output:
Fortran runtime error: Unformatted file structure has been corrupted.
This could indicate an issue with the structure of the input files, specifically TAPE3, which is expected to be in a particular format.
Questions:
Could the issue in the second output be related to the format or corruption of the TAPE3 file?
Is there any solution or common troubleshooting steps for the "Unformatted file structure has been corrupted" error in Fortran?