In recent day,I use the COAWST model (couple the ROMS and SWAN model)to simulate sediment transport. Before this ,I successfully run the Sed_floc_toy case. But when I actually run the real case, it report a segmentation fault in the very beginning. The problem is described in the below:
Then I check the inp_decode.F, read_phypar.F and the inp_par.F file.The corresponding code is show as follow:Model Input Parameters: ROMS/TOMS version 3.7
Sunday - April 11, 2021 - 6:42:33 PM
--------------------------------------------------------------------------------
forrtl: severe (174): SIGSEGV, segmentation fault occurred
Image PC Routine Line Source
coawstG 0000000000A8DC4A inp_decode_mod_mp 1629 inp_decode.f90
coawstG 000000000098F3B9 read_phypar_ 1557 read_phypar.f90
coawstG 00000000008FEE01 inp_par_ 66 inp_par.f90
coawstG 000000000040B365 ocean_control_mod 73 ocean_control.f90
coawstG 000000000040B0EF MAIN__ 73 master.f90
coawstG 000000000040AF8C Unknown Unknown Unknown
libc.so.6 0000003D7961ED20 Unknown Unknown Unknown
coawstG 000000000040AE89 Unknown Unknown Unknown
inp_decode.F line 1629:(which is blank)
read_phypar.F line1557!
! If appropriate, increase or reset nested grid counter.
!
IF ((Icont.gt.0).and.(Ngrids.gt.1)) THEN
IF ((iTrcStr.gt.0).and.(iTrcEnd.gt.0)) THEN
IF ((ifield.eq.isTvar(iTrcEnd)).or.(ic.gt.1)) THEN
igrid=igrid+MIN(1,Icont)
END IF
ELSE
inp_par.F line 66CASE ('Hout(idVbws)')
IF (idVbws.eq.0) THEN
IF (Master) WRITE (out,280) 'idVbws'
exit_flag=5
RETURN
END IF
I also try to turn on the idVbws and the related switch (idUbws idVbrs idUbrs) in my_case.in file#ifdef ROMS_STDOUT
!
! Change default Fortran standard out unit, so ROMS run information is
! directed to a file. This is advantageous in coupling applications to
! ROMS information separated from other models.
!
stdout=66 ! overwite Fortran default unit 6
!
IF (Master) THEN
OPEN (stdout, FILE='log.roms', FORM='formatted', &
& STATUS='replace')
END IF
#endif
but I still report the same segmentation fault
I do have no idea about this, Can anyone give me some suggestions or ideas?
thanks very much!
-Edward