Skip to content

Commit

Permalink
BUG: do not initialize codi_global if autodiff is false
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuMorlighem committed Jul 18, 2024
1 parent c8b520e commit 4dc2ae2
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,10 @@ void CreateParametersAutodiff(Parameters* parameters,IoModel* iomodel){
}

#if _HAVE_CODIPACK_
// Setup CoDiPack driver
codi_global.init(parameters);
if(isautodiff){
/* Setup CoDiPack driver*/
codi_global.init(parameters);
}
#endif
#endif
}

0 comments on commit 4dc2ae2

Please sign in to comment.