Skip to content

Commit

Permalink
Added CVODE max order parameter to simulator engine.
Browse files Browse the repository at this point in the history
  • Loading branch information
joaquinffernandez committed Jul 31, 2024
1 parent 5c7d22e commit 186038a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/engine/common/data.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ void SD_cleanEventData(SD_eventData events, int size)
}

SD_parameters SD_Parameters(double derDelta, double zcHyst, double minStep, int symDiff, int lps, int nodeSize, SD_PartitionMethod pm,
double dt, SD_DtSynch synch, SD_partitionerOptions partitionerOptions, int jacobian)
double dt, SD_DtSynch synch, SD_partitionerOptions partitionerOptions, int jacobian, int CVODE_max_order)
{
SD_parameters p = checkedMalloc(sizeof(*p));
p->derDelta = derDelta;
Expand All @@ -185,6 +185,7 @@ SD_parameters SD_Parameters(double derDelta, double zcHyst, double minStep, int
p->dtSynch = synch;
p->partitionerOptions = partitionerOptions;
p->jacobian = jacobian;
p->CVODE_max_order = CVODE_max_order;
return p;
}

Expand Down
3 changes: 2 additions & 1 deletion src/engine/common/data.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,13 +169,14 @@ struct SD_parameters_ {
int lps; //!< Number of LPs defined for parallel simulations.
int nodeSize; //!< Node size used in the memory list for output simulation values.
int jacobian;
int CVODE_max_order;
SD_PartitionMethod pm; //!< Partition method used to obtain a model partition for parallel simulations.
SD_DtSynch dtSynch; //!< \f $ \delta t $ \f synchronization policy.
SD_partitionerOptions partitionerOptions;
};

SD_parameters SD_Parameters(double derDelta, double zcHyst, double minStep, int symDiff, int lps, int nodeSize, SD_PartitionMethod pm,
double dt, SD_DtSynch synch, SD_partitionerOptions partitionerOptions, int jacobian);
double dt, SD_DtSynch synch, SD_partitionerOptions partitionerOptions, int jacobian, int CVODE_max_order);

SD_parameters SD_copyParameters(SD_parameters parameters);

Expand Down

0 comments on commit 186038a

Please sign in to comment.