Project

General

Profile

Segmentation fault error in int2lm

Added by Bo Huang over 2 years ago

Dear all,

recently, I want to set up simulation with COSMO-CLM in CORDEX-EU domain. The driven data is ERAInterim. I use chain to submit jobs. Then, the std out is correct with no error. But the std err always gets error as following. I don’t how to fix this problem. Is there special parameter should to switch on? I attach all the files.

---
forrtl: severe (174): SIGSEGV, segmentation fault occurred
Image PC Routine Line Source
int2lm.exe 0000000000F918F5 Unknown Unknown Unknown
int2lm.exe 0000000000F8F6B7 Unknown Unknown Unknown
int2lm.exe 0000000000F43D14 Unknown Unknown Unknown

.....

MPT: #11 0x0000000000d1b0e4 in src_read_coarse_grid::scatter_data (procarrays=...,
MPT: index=12, iloc=28, irank=3, ilev=58, leof=.FALSE., lrequired=4294967295,
MPT: istat=0)
MPT: at /work/bhuang/cclm-sp_2.4/src/int2lm/src/src_read_coarse_grid.f90:4195
MPT: #12 0x0000000000cc5771 in src_read_coarse_grid::org_read_coarse_grid (nnow=0,
MPT: lfirst=4294967295, ydate=..., .tmp.YDATE.len_V$f9f=14)
MPT: at /work/bhuang/cclm-sp_2.4/src/int2lm/src/src_read_coarse_grid.f90:1773
MPT: #13 0x000000000075dab4 in int2lm_org ()
MPT: at /work/bhuang/cclm-sp_2.4/src/int2lm/src/int2lm_org.f90:265
MPT: #14 0x000000000040cc1e in main ()
MPT: #15 0x00002aaab09a8c36 in __libc_start_main () from /lib64/libc.so.6
MPT: #16 0x000000000040cb29 in _start () at ../sysdeps/x86_64/elf/start.S:113
MPT: (gdb) A debugging session is active.


Greetings,
Bo


Replies (10)

RE: Segmentation fault error in int2lm - Added by Burkhardt Rockel over 2 years ago

Can you provide the related joblog file, too, please.

RE: Segmentation fault error in int2lm - Added by Bo Huang over 2 years ago

Dear Burkhardt,

actually, I used the cclm-sp_2.4 version from CLM Training 2017. Firstly, I tested the ext data (europe_0440.nc) and gcm data (ncep). It works. The simulation finished and the post-process also has done. It does not work when I change the gcm data ncep to erainterim. I only change the GRID_IN in int2lm.job.tmpl. Attached the joblog file for both simulations. How to fix this problem? Thank you very much.

ncep:
&GRID_IN
pcontrol_fi =30000.,
ie_in_tot = 192, je_in_tot = 94, ke_in_tot = 28,
startlat_in_tot = -88.542, startlon_in_tot = -180.,
endlat_in_tot = 88.542, endlon_in_tot = 178.125,
pollat_in = 90.0, pollon_in = 180.0,
lushift_in=.FALSE.,.FALSE., lvshift_in=.FALSE.,.FALSE.,
ke_soil_in=1,
czml_soil_in=0.05, 1.05,
/END

erainterim
&GRID_IN
pcontrol_fi =30000.,
ie_in_tot = 512, je_in_tot = 256, ke_in_tot = 60,
startlat_in_tot = -89.46282, startlon_in_tot = -180.0,
endlat_in_tot = 89.46282, endlon_in_tot = 179.2969,
pollat_in = 90.0, pollon_in = 180.0,
lushift_in=.FALSE.,.FALSE., lvshift_in=.FALSE.,.FALSE.,
ke_soil_in=3,
czml_soil_in=0.035, 0.175, 0.64, 1.775,
/END

Greetings,
Bo

RE: Segmentation fault error in int2lm - Added by Burkhardt Rockel over 2 years ago

Can you send me the preperai044.job from your jobs directory too?

RE: Segmentation fault error in int2lm - Added by Andreas Dobler over 2 years ago

Hi,

can you try
lprog_qi=.TRUE.
in the &CONTRL section for the europe_0440.nc case with ERAInterim data?

I’ve just tried it and it seems to work for me.

Probably related to this
[[http://redc.clm-community.eu/boards/12/topics/417]]

NCEP does not have QI, while ERAInterim has. Somehow our setup in the environment/compiler/library/settings at vilje (our HPC) seems to have problems with ignoring forcing data that’s available.

RE: Segmentation fault error in int2lm - Added by Bo Huang over 2 years ago

Hi Burkhardt,

enclosed the prep and int2lm job for both erainterim and ncep. Please find them.

Greetings,
Bo

RE: Segmentation fault error in int2lm - Added by Burkhardt Rockel over 2 years ago

1. Andreas is right, you have to use lprog_qi=.TRUE. for ERAInterim, otherwise the simulation will fail.

2. Please follow the instruction in cclm-sp_2.4/chain/extensions/boundary_data/erainterim/README
You have not made the correct settings in prep and int2lm templates as provided in the cclm-sp_2.4/chain/extensions/boundary_data/erainterim/templates directory.

RE: Segmentation fault error in int2lm - Added by Bo Huang over 2 years ago

Hi Andreas,

it works now. That is the reason for the error. Thank you so much.

Greetings,
Bo

RE: Segmentation fault error in int2lm - Added by Burkhardt Rockel over 2 years ago

By the way, we had this problem already in the int2lm forum:
http://redc.clm-community.eu/boards/12/topics/444

RE: Segmentation fault error in int2lm - Added by Andreas Dobler over 2 years ago

I’ll try to remember this next time

RE: Segmentation fault error in int2lm - Added by Bo Huang over 2 years ago

Hi Burkhardt,

thank you very much for your suggestions and tips. I will follow the instruction to set the model.

Greetings,
Bo

    (1-10/10)