Skip to content

Commit

Permalink
FIX: Update gsBarrierCore.h (#714)
Browse files Browse the repository at this point in the history
Function `void verboseLog` does not have `inline` and as a consequence this symbol ends up multiple times in a library that consists of multiple object files that include `gismo.h`.
  • Loading branch information
mmoelle1 committed Jun 7, 2024
1 parent 63be12f commit 00ffb4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gsModeling/gsBarrierCore.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ void setOptimizerOptions(gsHLBFGS<T> &optimizer, const gsOptionList &options) {
#endif

/// helper function to verbose log
void verboseLog(const std::string &message, const index_t &verbose) {
inline void verboseLog(const std::string &message, const index_t &verbose) {
if (verbose > 0) { gsInfo << message << "\n"; }
}

Expand Down

0 comments on commit 00ffb4f

Please sign in to comment.