tianfengco@gmail_com
New Member
Hi, I am trying to read a new input data file in CESM1.2.0 by adding my own subroutines which functions well on desktop computers. The subroutine is called by tphysac and I modified the subroutine by using getunit and freeunit. When the subroutine is activated, the model will report a series of errors and run very slowly, eventually will exceed the runtime limit and exit. Any help will be appreciated. FengThe error message in the CESM log is in the following: 0:forrtl: severe (29): file not found, unit 72, file /glade/scratch/tian/F_2000_WACCM_Basecase/run/fort.72 0:Image PC Routine Line Source 0:libirc.so 00002B5D6F628A1E Unknown Unknown Unknown 0:libirc.so 00002B5D6F6274B6 Unknown Unknown Unknown 0:cesm.exe 0000000001A4C0F2 Unknown Unknown Unknown 0:cesm.exe 00000000019CCA2C Unknown Unknown Unknown 0:cesm.exe 00000000019CBF4C Unknown Unknown Unknown 0:cesm.exe 00000000019FCAE2 Unknown Unknown Unknown 0:cesm.exe 0000000000E39C8A openread_ 79 tf_OpenRead.f90 0:cesm.exe 0000000000CE59EE tf_photo_co2_ 150 tf_photo_CO2.f90 0:cesm.exe 000000000084D2D3 tf_test_mp_tf_tes 278 tf_test.f90 0:cesm.exe 0000000000760AEA physpkg_mp_tphysa 1452 physpkg.F90 0:cesm.exe 000000000075F6DA physpkg_mp_phys_r 1136 physpkg.F90 0:libiomp5.so 00002B5D6FAED003 Unknown Unknown Unknown The program to open, read, and close the data file are in the following (line 79 in the tf_OpenRead.f90 is the READ(unit_2222..) statement): if (masterproc) then unit_2222 = getunit() OPEN(unit_2222,FILE=TRIM(DIRDATA)//'/H2SO4.DAT', & & status='UNKNOWN', iostat=IERR ) if( IERR /= 0 ) then write(iulog,*) 'tf_open_init: failed to open unit_2222,& & error=', IERR call endrun end if ! READ(unit_2222,8003) PresSatH2O,PresSatH2SO4,TTAB,FTAB CLOSE(unit_2222) call freeunit(unit_2222) endif 8003 FORMAT(1P6E12.5)