Skip to content

Commit

Permalink
Merge pull request #110 from nasa/108-many-pointers-to-tmm-allocs-are…
Browse files Browse the repository at this point in the history
…-not-checkpointed

(#108) fixed TMM allocs in GunnsFluidReactorConfigData
  • Loading branch information
jasonlharvey authored Jun 28, 2024
2 parents 05898f3 + 4aa9212 commit 72982de
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions aspects/fluid/source/GunnsFluidReactor.cpp
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/************************** TRICK HEADER **********************************************************
@copyright Copyright 2019 United States Government as represented by the Administrator of the
/*
@copyright Copyright 2024 United States Government as represented by the Administrator of the
National Aeronautics and Space Administration. All Rights Reserved.
LIBRARY DEPENDENCY:
(
(core/GunnsFluidSource.o)
(properties/ChemicalReaction.o)
)
**************************************************************************************************/
*/

#include "simulation/hs/TsHsMsg.hh"
#include "software/exceptions/TsInitializationException.hh"
Expand Down Expand Up @@ -61,14 +61,14 @@ GunnsFluidReactorConfigData::GunnsFluidReactorConfigData(const std::string&
{
/// - Allocate and initialize the array of reaction types.
if (nReactions > 0 && reactionTypes != 0) {
TS_NEW_PRIM_ARRAY(mReactionTypes, nReactions, ChemicalReaction::Type, name + ".mReactionTypes");
TS_NEW_PRIM_ARRAY_EXT(mReactionTypes, nReactions, ChemicalReaction::Type, name + ".mReactionTypes");
for (int i = 0; i < nReactions; ++i) {
mReactionTypes[i] = reactionTypes[i];
}
}
/// - Allocate and initialize the array of compound types.
if (nCompounds > 0 && compoundTypes != 0) {
TS_NEW_PRIM_ARRAY(mCompoundTypes, nCompounds, ChemicalCompound::Type, name + ".mCompoundTypes");
TS_NEW_PRIM_ARRAY_EXT(mCompoundTypes, nCompounds, ChemicalCompound::Type, name + ".mCompoundTypes");
for (int i = 0; i < nCompounds; ++i) {
mCompoundTypes[i] = compoundTypes[i];
}
Expand Down

0 comments on commit 72982de

Please sign in to comment.