esmf-org / esmf

The Earth System Modeling Framework (ESMF) is a suite of software tools for developing high-performance, multi-component Earth science modeling applications.
https://earthsystemmodeling.org/
Other
149 stars 70 forks source link

BUG: segfault with ssiMap argument to ESMF_VMGet() is broken #242

Closed tclune closed 2 months ago

tclune commented 2 months ago

The following snippet of code contains an erroneous reference to an optional argument petCount. https://github.com/esmf-org/esmf/blob/e29a9710c480f8047c896b6c29de5c3db608b89e/src/Infrastructure/VM/interface/ESMF_VM.F90#L5356-L5363

The reference should instead be to petCountArg

As a workaround I can include the unused optional argument until this is fixed.

I'll submit a PR shortly.