CABLE-LSM / CABLE-Trac-archive

Archive CABLE Trac contents as issues
Other
0 stars 0 forks source link

write_casa_dump segmentation fault #171

Closed penguian closed 6 years ago

penguian commented 6 years ago

keyword_casa_nogit keyword_seg_fault owner:vxh599@nci.org.au resolution_fixed type_defect | by mgk576


In cable_canopy.F90, write_casa_dump, there is a call:

CALL put_var_ncr2(ncid, var_name(13), real(climate%mtemp_max,r_2) ,n_call )

But if call_climate has been set to false the memory for mtemp_max has not been allocated and you will get a seg faut.

Solution:

IF (cable_user%CALL_climate) THEN CALL put_var_ncr2(ncid, var_name(13), real(climate%mtemp_max,r_2), n_call) END IF


Issue migrated from trac:171 at 2023-11-27 11:23:21 +1100

penguian commented 6 years ago

@mgk576@nci.org.au _uploaded file casa_cable.F90 (43.4 KiB)_

penguian commented 6 years ago

@vxh599@nci.org.au changed status from new to closed

penguian commented 6 years ago

@vxh599@nci.org.au changed resolution from ` tofixed`

penguian commented 6 years ago

@vxh599@nci.org.au commented


Fixed in https://trac.nci.org.au/svn/cable/branches/Share/CMIP6-MOSRS revision 4825

penguian commented 6 years ago

@vxh599@nci.org.au changed status from closed to reopened

penguian commented 6 years ago

@vxh599@nci.org.au changed resolution from fixed to ``

penguian commented 6 years ago

@vxh599@nci.org.au changed owner from yxw599 to vxh599

penguian commented 6 years ago

@vxh599@nci.org.au changed status from reopened to new

penguian commented 6 years ago

@vxh599@nci.org.au changed status from new to closed

penguian commented 6 years ago

@vxh599@nci.org.au changed resolution from ` tofixed`

penguian commented 5 years ago

@jxs599@nci.org.au changed milestone from 2. Submission to 1. Closed

penguian commented 1 year ago

@ccc561@nci.org.au changed keywords from seg fault, casa to seg fault, casa nogit