Skip to content

Commit

Permalink
POD: fix pod kernel clear
Browse files Browse the repository at this point in the history
  • Loading branch information
giacomo-zuccarino-optimad committed Dec 7, 2023
1 parent a51eebd commit 7ad7e9e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/POD/pod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,9 @@ void POD::clear()
m_nModes = 0;
m_nReconstructionSnapshots = 0;

m_podkernel->clearMapper();
if (m_podkernel) {
m_podkernel->clearMapper();
}

# if BITPIT_ENABLE_MPI
freeCommunicator();
Expand Down

0 comments on commit 7ad7e9e

Please sign in to comment.