schism-dev / schism-esmf

Earth System Modeling Framework cap for SCHISM
5 stars 6 forks source link

segfault in schism_esmf_util::schism_stategetfield #7

Closed platipodium closed 1 year ago

platipodium commented 2 years ago
Program received signal SIGSEGV, Segmentation fault.
0x000000000044090e in schism_esmf_util::schism_stategetfield (state=..., 
    itemname='air_pressure_at_sea_level', 
    kwe=<error reading variable: Cannot access memory at address 0x0>, 
    farrayptr=<error reading variable: Cannot resolve DW_OP_push_object_address for a missing object>, 
    field=..., rc=0, .tmp.ITEMNAME.len_V$8c80=25) at schism_esmf_util.F90:66
66      subroutine SCHISM_StateGetField(state, itemName, kwe, farrayPtr, field,  rc)
platipodium commented 2 years ago

This is the signature of the subroutine:

subroutine SCHISM_StateGetField(state, itemName, kwe, farrayPtr, field,  rc)

  type(ESMF_State), intent(in)                        :: state
  character(len=*), intent(in)                        :: itemName
  type(ESMF_KeywordEnforcer), intent(in), optional    :: kwe
  type(ESMF_Field), intent(out), optional             :: field
  real(ESMF_KIND_R8), pointer, intent(out), optional  :: farrayPtr(:)
  integer(ESMF_KIND_I4), intent(out), optional        :: rc