News

openCARP Digest November

This post summarizes all developments that made its way into the master branch in the last month. The Courtemanche atrial model was replaced by a corrected version, and GrandiPanditVoigt was renamed, so atrial simulations give different results or fail to start on a fresh build.

v20.0 is still the current release: everything below is on master only, so you get it only with a fresh build from source and an updated carputils.

Affects your simulations

  • Courtemanche is now a corrected model, and results change. The old implementation did not match the publication, openCOR, or the published CellML model. The new one has dynamic intracellular sodium, which drifts in long simulations, and renames most parameters (e.g. factorGKur → GKur, maxINaK → INaK_max, Ko/Nao/Cao → Ke/Nae/Cae). The factor*Gate parameters are gone. State and checkpoint files from the old model are rejected. The old model is still available as Courtemanche_legacy. What to do: to reproduce earlier results, switch to Courtemanche_legacy. To use the new model, rename the parameters you set in im_param and regenerate your state files. See the news article for the Nai drift. (!532, carputils !136)
  • GrandiPanditVoigt no longer exists under that name. The fixed model is GrandiPanditVoigt11. The old implementation, which did not match the publication or openCOR, is kept as GrandiPanditVoigt_legacy. What to do: replace GrandiPanditVoigt in your .par files or carputils scripts. Pick GrandiPanditVoigt11 for new work and GrandiPanditVoigt_legacy to reproduce old results. (!513, carputils !127)
  • EMI transmembrane-current (I_tm) stimuli now deliver the intended current. Electrodes whose nodes lie on one side of the membrane, such as tag electrodes, delivered only half the current density. With crct.total_current = 1 the solve blew up. Stimuli also drove spurious currents through gap junctions. What to do: expect different results for EMI runs with I_tm stimuli, especially if your electrode touches a gap junction, and re-check stimulus strengths you tuned against the old behaviour. (!574)
  • The legacy parameter parser is gone. All .par, .toml and .json input now goes through the new parser alone. The startup check against the old parser was removed, and so were the escape hatches --param-fallback=legacy, OPENCARP_PARAM_FALLBACK and OPENCARP_PARAM_COMPARE. What to do: if you used the fallback to get a .par file to start, that no longer works. Open an issue with the file. (!577)
  • Ginkgo GPU builds may change in the last digits. Builds that fetch Ginkgo, and the Ginkgo Docker images, now use a newer Ginkgo with retuned CUDA/HIP sparse kernels. What to do: nothing, unless you compare GPU results bit-for-bit against older runs. (!573)

New capabilities

  • Assign ionic models per node. imp_region_nodefile takes a vertex adjustment (.adj) file that assigns imp_region indices to the listed nodes, overriding the tag-based assignment. One use is mixing cell types inside a single tag. (!540)
  • Tag ranges in carputils regions. ConductivityRegion, ConductivityRegionEMI, ionic models and gen_physics_opts accept range/list strings such as '102:2:108,137' as region IDs, so you no longer have to list every tag. (carputils !152, #164)
  • Ginkgo without PETSc. -DENABLE_PETSC=OFF -DENABLE_GINKGO=ON builds openCARP with no PETSc at all. With both backends built, -flavor ginkgo no longer touches PETSc. (!569)
  • GPU memory pools for Ginkgo. ginkgo_allocator umpire gives each rank a memory pool, sized with ginkgo_pool_size and ginkgo_pool_growth (MiB). It needs Ginkgo built with Umpire. (!573)
  • EMI: keep membranes off rank boundaries. emi_move_membranes (with emi_move_layers, default 1) moves the extracellular elements around each cell onto that cell's rank. This helps domain-decomposition preconditioners such as BDDC, but can worsen load balance. (!579)
  • PEERP stimulus delay. STIM_delay in the PEERP config delays the stimulus after the ERP. (carputils !149)
  • tuneCV and restituteCV with your own ionic model. The new --load-imp flag loads a model compiled as a dynamic library. (carputils !154)

Fixed

  • bench paced the wrong number of beats. It used the BCL in ms as the stimulus count instead of --numstim. Runs could pace through the --past-stim period, or stop early. --numstim 0 again means no stimuli. Needs a rebuild. (!575, #564)
  • RP_E restitution protocol dropped its pacing trains. carputils mixed two stimulus syntaxes, and openCARP silently ignored the pacing train. Re-run RP_E results produced with an older carputils. (carputils !155)
  • PEERP beats did not start at the end of the previous ERP. The last activation was measured from the wrong time origin. (carputils !153)
  • EMI: unconnected cells fired together. In meshes with unused points, the first cell shared nodes with another cell, so both fired at once, and a voltage clamp could crash the serial solve. (!574)
  • EMI: an empty phiefile or vofile stopped the setup. It now just skips that output. (!574)
  • Ginkgo runs with async IO (num_io_nodes) hung. (!569)
  • MLIR CPU builds gave wrong results or segfaulted when an ionic-model lookup table was read out of range. Only affects builds with MLIR code generation enabled. (!571, #563)

Under the hood

8 changes to CI, build, licensing and submodule bumps. Two worth knowing: a new benchmarking CI stage runs performance benchmarks on HoreKa (thanks to Michele Mesiti and Muhammed; !565), and PEERP keeps stimulus points in memory instead of rereading them, so points run better in parallel (carputils !148).

© Copyright 2020 openCARP project    Supported by DFG and EuroHPC    Contact    Imprint and data protection