Skip to content

Commit

Permalink
Guard against pulling in actual_network (#417)
Browse files Browse the repository at this point in the history
We pull in this file if USE_CXX_REACTIONS = TRUE, but if that is set without USE_REACT = TRUE, we will attempt to pull in actual_network.H, which only exists for some networks.
  • Loading branch information
maxpkatz authored Nov 1, 2020
1 parent 7952b11 commit ccd82d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions interfaces/network_initialization.cpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#include <actual_network.H>
#ifdef REACTIONS
#include <actual_network.H>
#include <actual_rhs.H>
#endif

void network_init()
{
actual_network_init();
#ifdef REACTIONS
actual_network_init();
actual_rhs_init();
#endif
}

0 comments on commit ccd82d1

Please sign in to comment.