scapps@uci_edu
Member
I am trying to build a T85 SOM dataset and am having some issues. Here is the sequence of commands I am using:
./definemldbdy -s 10 -v -i mldfile.nc -o /ptmp/scapps/cam3_1_inputdata/atm/cam2/sst/sst_scapps_clim_T85.nc
cd ~/CAM3_1/cam1/models/atm/cam/tools/defineqflux/
./defineqflux -f /data/scapps/cam_eul_dom_T85_npdf/cam_eul_dom_T85_npdf.cam2.h0.1999-01.nc -l /data/scapps/cam_eul_dom_T85_npdf/cam_eul_dom_T85_npdf.cam2.h0.2000-12.nc -s /ptmp/scapps/cam3_1_inputdata/atm/cam2/sst/sst_scapps_clim_T85.nc -v
In the timediddle_mavg.c routine, it appears to be failing here:
if ((A[m] = (double *) malloc (12 * sizeof (double))) == 0)
err_exit ("malloc failure for row %d of An", m);
if ((L[m] = (double *) malloc (12 * sizeof (double))) == 0)
err_exit ("malloc failure for row %d of An", m);
When I pass in the "-b" command line flag, it works.....
./defineqflux -b -f /data/scapps/cam_eul_dom_T85_npdf/cam_eul_dom_T85_npdf.cam2.h0.1999-01.nc -l /data/scapps/cam_eul_dom_T85_npdf/cam_eul_dom_T85_npdf.cam2.h0.2005-12.nc -s ./scapps_mld.nc -v
Here is my output:
Read sst and ice conc file /ptmp/scapps/cam3_1_inputdata/atm/cam2/sst/sst_scapps_clim_T85.nc sst=-1.38408 conc=0.992844
Read sst and ice conc file /ptmp/scapps/cam3_1_inputdata/atm/cam2/sst/sst_scapps_clim_T85.nc sst=-0.768655 conc=0.994839
Read sst and ice conc file /ptmp/scapps/cam3_1_inputdata/atm/cam2/sst/sst_scapps_clim_T85.nc sst=-1.01249 conc=0.996022
Read sst and ice conc file /ptmp/scapps/cam3_1_inputdata/atm/cam2/sst/sst_scapps_clim_T85.nc sst=-1.76231 conc=0.99512
Read sst and ice conc file /ptmp/scapps/cam3_1_inputdata/atm/cam2/sst/sst_scapps_clim_T85.nc sst=-1.747 conc=0.991147
Read sst and ice conc file /ptmp/scapps/cam3_1_inputdata/atm/cam2/sst/sst_scapps_clim_T85.nc sst=-1.7695 conc=0.996429
Read sst and ice conc file /ptmp/scapps/cam3_1_inputdata/atm/cam2/sst/sst_scapps_clim_T85.nc sst=-1.77568 conc=0.964975
Read sst and ice conc file /ptmp/scapps/cam3_1_inputdata/atm/cam2/sst/sst_scapps_clim_T85.nc sst=-1.78525 conc=0.965846
Read sst and ice conc file /ptmp/scapps/cam3_1_inputdata/atm/cam2/sst/sst_scapps_clim_T85.nc sst=-1.7901 conc=0.959432
Read sst and ice conc file /ptmp/scapps/cam3_1_inputdata/atm/cam2/sst/sst_scapps_clim_T85.nc sst=-1.76568 conc=0.975479
Read sst and ice conc file /ptmp/scapps/cam3_1_inputdata/atm/cam2/sst/sst_scapps_clim_T85.nc sst=-1.78686 conc=0.984447
Read sst and ice conc file /ptmp/scapps/cam3_1_inputdata/atm/cam2/sst/sst_scapps_clim_T85.nc sst=-1.77251 conc=0.992425
Read fluxes file /data/scapps/cam_eul_dom_T85_npdf/cam_eul_dom_T85_npdf.cam2.h0.1999-01.nc fsns=0 flns=0 lhflx=0 shflx=0
Read fluxes file /data/scapps/cam_eul_dom_T85_npdf/cam_eul_dom_T85_npdf.cam2.h0.1999-02.nc fsns=0 flns=0 lhflx=0 shflx=0
Read fluxes file /data/scapps/cam_eul_dom_T85_npdf/cam_eul_dom_T85_npdf.cam2.h0.1999-03.nc fsns=0 flns=0 lhflx=0 shflx=0
Read fluxes file /data/scapps/cam_eul_dom_T85_npdf/cam_eul_dom_T85_npdf.cam2.h0.1999-04.nc fsns=0 flns=0 lhflx=0 shflx=0
Read fluxes file /data/scapps/cam_eul_dom_T85_npdf/cam_eul_dom_T85_npdf.cam2.h0.1999-05.nc fsns=0 flns=0 lhflx=0 shflx=0
Read fluxes file /data/scapps/cam_eul_dom_T85_npdf/cam_eul_dom_T85_npdf.cam2.h0.1999-06.nc fsns=0 flns=0 lhflx=0 shflx=0
Read fluxes file /data/scapps/cam_eul_dom_T85_npdf/cam_eul_dom_T85_npdf.cam2.h0.1999-07.nc fsns=0 flns=0 lhflx=0 shflx=0
Read fluxes file /data/scapps/cam_eul_dom_T85_npdf/cam_eul_dom_T85_npdf.cam2.h0.1999-08.nc fsns=0 flns=0 lhflx=0 shflx=0
Read fluxes file /data/scapps/cam_eul_dom_T85_npdf/cam_eul_dom_T85_npdf.cam2.h0.1999-09.nc fsns=0 flns=0 lhflx=0 shflx=0
Read fluxes file /data/scapps/cam_eul_dom_T85_npdf/cam_eul_dom_T85_npdf.cam2.h0.1999-10.nc fsns=0 flns=0 lhflx=0 shflx=0
Read fluxes file /data/scapps/cam_eul_dom_T85_npdf/cam_eul_dom_T85_npdf.cam2.h0.1999-11.nc fsns=0 flns=0 lhflx=0 shflx=0
Read fluxes file /data/scapps/cam_eul_dom_T85_npdf/cam_eul_dom_T85_npdf.cam2.h0.1999-12.nc fsns=0 flns=0 lhflx=0 shflx=0
Read fluxes file /data/scapps/cam_eul_dom_T85_npdf/cam_eul_dom_T85_npdf.cam2.h0.2000-01.nc fsns=0 flns=0 lhflx=0 shflx=0
Read fluxes file /data/scapps/cam_eul_dom_T85_npdf/cam_eul_dom_T85_npdf.cam2.h0.2000-02.nc fsns=0 flns=0 lhflx=0 shflx=0
Read fluxes file /data/scapps/cam_eul_dom_T85_npdf/cam_eul_dom_T85_npdf.cam2.h0.2000-03.nc fsns=0 flns=0 lhflx=0 shflx=0
Read fluxes file /data/scapps/cam_eul_dom_T85_npdf/cam_eul_dom_T85_npdf.cam2.h0.2000-04.nc fsns=0 flns=0 lhflx=0 shflx=0
Read fluxes file /data/scapps/cam_eul_dom_T85_npdf/cam_eul_dom_T85_npdf.cam2.h0.2000-05.nc fsns=0 flns=0 lhflx=0 shflx=0
Read fluxes file /data/scapps/cam_eul_dom_T85_npdf/cam_eul_dom_T85_npdf.cam2.h0.2000-06.nc fsns=0 flns=0 lhflx=0 shflx=0
Read fluxes file /data/scapps/cam_eul_dom_T85_npdf/cam_eul_dom_T85_npdf.cam2.h0.2000-07.nc fsns=0 flns=0 lhflx=0 shflx=0
Read fluxes file /data/scapps/cam_eul_dom_T85_npdf/cam_eul_dom_T85_npdf.cam2.h0.2000-08.nc fsns=0 flns=0 lhflx=0 shflx=0
Read fluxes file /data/scapps/cam_eul_dom_T85_npdf/cam_eul_dom_T85_npdf.cam2.h0.2000-09.nc fsns=0 flns=0 lhflx=0 shflx=0
Read fluxes file /data/scapps/cam_eul_dom_T85_npdf/cam_eul_dom_T85_npdf.cam2.h0.2000-10.nc fsns=0 flns=0 lhflx=0 shflx=0
Read fluxes file /data/scapps/cam_eul_dom_T85_npdf/cam_eul_dom_T85_npdf.cam2.h0.2000-11.nc fsns=0 flns=0 lhflx=0 shflx=0
Read fluxes file /data/scapps/cam_eul_dom_T85_npdf/cam_eul_dom_T85_npdf.cam2.h0.2000-12.nc fsns=0 flns=0 lhflx=0 shflx=0
Using SST mid-months 11 and 1 to compute QFLUX mid-month 0
dayfact=62
Using SST mid-months 0 and 2 to compute QFLUX mid-month 1
dayfact=56
Using SST mid-months 1 and 3 to compute QFLUX mid-month 2
dayfact=62
Using SST mid-months 2 and 4 to compute QFLUX mid-month 3
dayfact=60
Using SST mid-months 3 and 5 to compute QFLUX mid-month 4
dayfact=62
Using SST mid-months 4 and 6 to compute QFLUX mid-month 5
dayfact=60
Using SST mid-months 5 and 7 to compute QFLUX mid-month 6
dayfact=62
Using SST mid-months 6 and 8 to compute QFLUX mid-month 7
dayfact=62
Using SST mid-months 7 and 9 to compute QFLUX mid-month 8
dayfact=60
Using SST mid-months 8 and 10 to compute QFLUX mid-month 9
dayfact=62
Using SST mid-months 9 and 11 to compute QFLUX mid-month 10
dayfact=60
Using SST mid-months 10 and 0 to compute QFLUX mid-month 11
dayfact=62
fact1,fact2= 0.5000000000000000 0.5000000000000000
Segmentation fault (core dumped)
Any help will be appreciated.
Thank you.
./definemldbdy -s 10 -v -i mldfile.nc -o /ptmp/scapps/cam3_1_inputdata/atm/cam2/sst/sst_scapps_clim_T85.nc
cd ~/CAM3_1/cam1/models/atm/cam/tools/defineqflux/
./defineqflux -f /data/scapps/cam_eul_dom_T85_npdf/cam_eul_dom_T85_npdf.cam2.h0.1999-01.nc -l /data/scapps/cam_eul_dom_T85_npdf/cam_eul_dom_T85_npdf.cam2.h0.2000-12.nc -s /ptmp/scapps/cam3_1_inputdata/atm/cam2/sst/sst_scapps_clim_T85.nc -v
In the timediddle_mavg.c routine, it appears to be failing here:
if ((A[m] = (double *) malloc (12 * sizeof (double))) == 0)
err_exit ("malloc failure for row %d of An", m);
if ((L[m] = (double *) malloc (12 * sizeof (double))) == 0)
err_exit ("malloc failure for row %d of An", m);
When I pass in the "-b" command line flag, it works.....
./defineqflux -b -f /data/scapps/cam_eul_dom_T85_npdf/cam_eul_dom_T85_npdf.cam2.h0.1999-01.nc -l /data/scapps/cam_eul_dom_T85_npdf/cam_eul_dom_T85_npdf.cam2.h0.2005-12.nc -s ./scapps_mld.nc -v
Here is my output:
Read sst and ice conc file /ptmp/scapps/cam3_1_inputdata/atm/cam2/sst/sst_scapps_clim_T85.nc sst=-1.38408 conc=0.992844
Read sst and ice conc file /ptmp/scapps/cam3_1_inputdata/atm/cam2/sst/sst_scapps_clim_T85.nc sst=-0.768655 conc=0.994839
Read sst and ice conc file /ptmp/scapps/cam3_1_inputdata/atm/cam2/sst/sst_scapps_clim_T85.nc sst=-1.01249 conc=0.996022
Read sst and ice conc file /ptmp/scapps/cam3_1_inputdata/atm/cam2/sst/sst_scapps_clim_T85.nc sst=-1.76231 conc=0.99512
Read sst and ice conc file /ptmp/scapps/cam3_1_inputdata/atm/cam2/sst/sst_scapps_clim_T85.nc sst=-1.747 conc=0.991147
Read sst and ice conc file /ptmp/scapps/cam3_1_inputdata/atm/cam2/sst/sst_scapps_clim_T85.nc sst=-1.7695 conc=0.996429
Read sst and ice conc file /ptmp/scapps/cam3_1_inputdata/atm/cam2/sst/sst_scapps_clim_T85.nc sst=-1.77568 conc=0.964975
Read sst and ice conc file /ptmp/scapps/cam3_1_inputdata/atm/cam2/sst/sst_scapps_clim_T85.nc sst=-1.78525 conc=0.965846
Read sst and ice conc file /ptmp/scapps/cam3_1_inputdata/atm/cam2/sst/sst_scapps_clim_T85.nc sst=-1.7901 conc=0.959432
Read sst and ice conc file /ptmp/scapps/cam3_1_inputdata/atm/cam2/sst/sst_scapps_clim_T85.nc sst=-1.76568 conc=0.975479
Read sst and ice conc file /ptmp/scapps/cam3_1_inputdata/atm/cam2/sst/sst_scapps_clim_T85.nc sst=-1.78686 conc=0.984447
Read sst and ice conc file /ptmp/scapps/cam3_1_inputdata/atm/cam2/sst/sst_scapps_clim_T85.nc sst=-1.77251 conc=0.992425
Read fluxes file /data/scapps/cam_eul_dom_T85_npdf/cam_eul_dom_T85_npdf.cam2.h0.1999-01.nc fsns=0 flns=0 lhflx=0 shflx=0
Read fluxes file /data/scapps/cam_eul_dom_T85_npdf/cam_eul_dom_T85_npdf.cam2.h0.1999-02.nc fsns=0 flns=0 lhflx=0 shflx=0
Read fluxes file /data/scapps/cam_eul_dom_T85_npdf/cam_eul_dom_T85_npdf.cam2.h0.1999-03.nc fsns=0 flns=0 lhflx=0 shflx=0
Read fluxes file /data/scapps/cam_eul_dom_T85_npdf/cam_eul_dom_T85_npdf.cam2.h0.1999-04.nc fsns=0 flns=0 lhflx=0 shflx=0
Read fluxes file /data/scapps/cam_eul_dom_T85_npdf/cam_eul_dom_T85_npdf.cam2.h0.1999-05.nc fsns=0 flns=0 lhflx=0 shflx=0
Read fluxes file /data/scapps/cam_eul_dom_T85_npdf/cam_eul_dom_T85_npdf.cam2.h0.1999-06.nc fsns=0 flns=0 lhflx=0 shflx=0
Read fluxes file /data/scapps/cam_eul_dom_T85_npdf/cam_eul_dom_T85_npdf.cam2.h0.1999-07.nc fsns=0 flns=0 lhflx=0 shflx=0
Read fluxes file /data/scapps/cam_eul_dom_T85_npdf/cam_eul_dom_T85_npdf.cam2.h0.1999-08.nc fsns=0 flns=0 lhflx=0 shflx=0
Read fluxes file /data/scapps/cam_eul_dom_T85_npdf/cam_eul_dom_T85_npdf.cam2.h0.1999-09.nc fsns=0 flns=0 lhflx=0 shflx=0
Read fluxes file /data/scapps/cam_eul_dom_T85_npdf/cam_eul_dom_T85_npdf.cam2.h0.1999-10.nc fsns=0 flns=0 lhflx=0 shflx=0
Read fluxes file /data/scapps/cam_eul_dom_T85_npdf/cam_eul_dom_T85_npdf.cam2.h0.1999-11.nc fsns=0 flns=0 lhflx=0 shflx=0
Read fluxes file /data/scapps/cam_eul_dom_T85_npdf/cam_eul_dom_T85_npdf.cam2.h0.1999-12.nc fsns=0 flns=0 lhflx=0 shflx=0
Read fluxes file /data/scapps/cam_eul_dom_T85_npdf/cam_eul_dom_T85_npdf.cam2.h0.2000-01.nc fsns=0 flns=0 lhflx=0 shflx=0
Read fluxes file /data/scapps/cam_eul_dom_T85_npdf/cam_eul_dom_T85_npdf.cam2.h0.2000-02.nc fsns=0 flns=0 lhflx=0 shflx=0
Read fluxes file /data/scapps/cam_eul_dom_T85_npdf/cam_eul_dom_T85_npdf.cam2.h0.2000-03.nc fsns=0 flns=0 lhflx=0 shflx=0
Read fluxes file /data/scapps/cam_eul_dom_T85_npdf/cam_eul_dom_T85_npdf.cam2.h0.2000-04.nc fsns=0 flns=0 lhflx=0 shflx=0
Read fluxes file /data/scapps/cam_eul_dom_T85_npdf/cam_eul_dom_T85_npdf.cam2.h0.2000-05.nc fsns=0 flns=0 lhflx=0 shflx=0
Read fluxes file /data/scapps/cam_eul_dom_T85_npdf/cam_eul_dom_T85_npdf.cam2.h0.2000-06.nc fsns=0 flns=0 lhflx=0 shflx=0
Read fluxes file /data/scapps/cam_eul_dom_T85_npdf/cam_eul_dom_T85_npdf.cam2.h0.2000-07.nc fsns=0 flns=0 lhflx=0 shflx=0
Read fluxes file /data/scapps/cam_eul_dom_T85_npdf/cam_eul_dom_T85_npdf.cam2.h0.2000-08.nc fsns=0 flns=0 lhflx=0 shflx=0
Read fluxes file /data/scapps/cam_eul_dom_T85_npdf/cam_eul_dom_T85_npdf.cam2.h0.2000-09.nc fsns=0 flns=0 lhflx=0 shflx=0
Read fluxes file /data/scapps/cam_eul_dom_T85_npdf/cam_eul_dom_T85_npdf.cam2.h0.2000-10.nc fsns=0 flns=0 lhflx=0 shflx=0
Read fluxes file /data/scapps/cam_eul_dom_T85_npdf/cam_eul_dom_T85_npdf.cam2.h0.2000-11.nc fsns=0 flns=0 lhflx=0 shflx=0
Read fluxes file /data/scapps/cam_eul_dom_T85_npdf/cam_eul_dom_T85_npdf.cam2.h0.2000-12.nc fsns=0 flns=0 lhflx=0 shflx=0
Using SST mid-months 11 and 1 to compute QFLUX mid-month 0
dayfact=62
Using SST mid-months 0 and 2 to compute QFLUX mid-month 1
dayfact=56
Using SST mid-months 1 and 3 to compute QFLUX mid-month 2
dayfact=62
Using SST mid-months 2 and 4 to compute QFLUX mid-month 3
dayfact=60
Using SST mid-months 3 and 5 to compute QFLUX mid-month 4
dayfact=62
Using SST mid-months 4 and 6 to compute QFLUX mid-month 5
dayfact=60
Using SST mid-months 5 and 7 to compute QFLUX mid-month 6
dayfact=62
Using SST mid-months 6 and 8 to compute QFLUX mid-month 7
dayfact=62
Using SST mid-months 7 and 9 to compute QFLUX mid-month 8
dayfact=60
Using SST mid-months 8 and 10 to compute QFLUX mid-month 9
dayfact=62
Using SST mid-months 9 and 11 to compute QFLUX mid-month 10
dayfact=60
Using SST mid-months 10 and 0 to compute QFLUX mid-month 11
dayfact=62
fact1,fact2= 0.5000000000000000 0.5000000000000000
Segmentation fault (core dumped)
Any help will be appreciated.
Thank you.