plesager / ece3-postproc

Suite of processing tools for EC-Earth3 output
5 stars 8 forks source link

Hiresclim2 MOC segmentation fault #32

Closed plesager closed 6 years ago

plesager commented 6 years ago

Working on PRIMAVERA hires output, on the Rhino platform. I've tried CDFTOOLS 3.01, 3.0.2, and 4.0 and I got the same message:

Working with cdfmoc ...
   npiglo =        1442
   npjglo =        1050
   npk    =          75
   npt    =          12
forrtl: severe (174): SIGSEGV, segmentation fault occurred
Image              PC                Routine            Line        Source             
cdfmoc             00000000005094F1  Unknown               Unknown  Unknown
cdfmoc             000000000050762B  Unknown               Unknown  Unknown
cdfmoc             00000000004B6C04  Unknown               Unknown  Unknown
cdfmoc             00000000004B6A16  Unknown               Unknown  Unknown
cdfmoc             0000000000457B39  Unknown               Unknown  Unknown
cdfmoc             000000000045BBF6  Unknown               Unknown  Unknown
libpthread-2.17.s  00007F848973F370  Unknown               Unknown  Unknown
cdfmoc             00000000004278AB  cdfmoc_IP_get_e3v         548  cdfmoc.f90
cdfmoc             000000000040CBD2  MAIN__                    286  cdfmoc.f90
cdfmoc             000000000040A25E  Unknown               Unknown  Unknown
libc-2.17.so       00007F848918CB35  __libc_start_main     Unknown  Unknown
cdfmoc             000000000040A169  Unknown               Unknown  Unknown
plesager commented 6 years ago

Tried 3.0, same problem. Copied all the files to ECMWF, and tried 3.0 there, and it works fine.

plesager commented 6 years ago

Solved the problem by modifying the source code of CDFTOOLS/cdfmoc.F90 (see this commit). Tried on versions 3.0 and 4 of CDFTOOLS, and it works in both cases.