Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[C-Runtime] Parallelise DASSL and IDA Jacobian evaluation
Add support for parallel Jacobian evaluation in DASSL and IDA for symbolical jacobian of right hand side of DAE. For this linear systems can now be solved in parallel with all linear solvers, since a Jacobian column can contain linear loops. - Parallel Jacobian evaluation will be encapsulated by USE_PARJAC defines and compiler directives. - To compile omc with parallel jacobians pass `--enable-parjac` to `OMCompiler/configure`. This will check for OpenMP support and add corresponding Flags to simulation makefile and c runtime makefile. - To simulate a model with parallel jacobian evaluations use a) Pass `-jacobianThreads=<numberOfThreads>` as simulationflag to use desired ammount of threads for parallel jacobian evaluation. b) environment variable `OMP_NUM_THREADS=N` This order also gives the order of the precedence, i.e. if both are specified value of -jacobianThreads is taken over `OMP_NUM_THREADS`. If nothing is specified by the user `omp_get_max_thread()` is used to set the number of threads to use for parallel jacobian evaluation. Co-authored-by: mflehmig <martin.schroschk@tu-dresden.de>
- Loading branch information
Showing
34 changed files
with
976 additions
and
276 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.