-
Notifications
You must be signed in to change notification settings - Fork 14
Problem to run the test program #6
Description
Dear Grid2Grid developers:
I have problem to run the test subroutine in the src/libGrid2Grid/main.f90 after compiling the grid2grid library.
I can successfully compile the grid2grid library. However, when I test the surboutine testSurf2Vol() in debug mode, the program has error. The program i tested is located at src/libGrid2Grid/main.f90
The program generated the following error:
HOS Ocean Surf2Vol ...
forrtl: severe (174): SIGSEGV, segmentation fault occurred
Image PC Routine Line Source
Grid2GridTest 00000000006FC43A Unknown Unknown Unknown
libpthread-2.31.s 00007FFFF7E593C0 Unknown Unknown Unknown
Grid2GridTest 00000000004944A6 Unknown Unknown Unknown
Grid2GridTest 0000000000493F06 Unknown Unknown Unknown
Grid2GridTest 00000000004A48DA Unknown Unknown Unknown
Grid2GridTest 0000000000536384 Unknown Unknown Unknown
Grid2GridTest 0000000000534E90 Unknown Unknown Unknown
Grid2GridTest 000000000054A38F Unknown Unknown Unknown
Grid2GridTest 000000000040C4B8 Unknown Unknown Unknown
Grid2GridTest 0000000000403948 Unknown Unknown Unknown
Grid2GridTest 00000000004038D2 Unknown Unknown Unknown
libc-2.31.so 00007FFFF7C790B3 __libc_start_main Unknown Unknown
Grid2GridTest 00000000004037DE Unknown Unknown Unknown
I debug the code and fund the program will have error at line #209 of hosOcean.inc:
this%nXmode_ = nint(x1) * this%dict_%getIntOrDefault("extraInterpolationNumber", 1)
It looks like %this%dict_ is not initialized and the function getIntOrDefault() can't evaluate
this%nkey method.
The tested main program is changed to run the subroutine testSurf2Vol().
The program is as followings:
Program main
Implicit None
Character(Len =100) :: inputFileName
inputFileName = "postGrid2Grid.dict"
!Call testDict()
!Call testPost(inputFileName)
Call testSurf2Vol()
! Call testVol2Vol()
End Program