Skip to content

Commit 1591aab

Browse files
authored
Merge pull request #612 from PrincetonUniversity/chemfix
Fixing a linking error for chemistry with no network
2 parents ad81123 + d0cf55c commit 1591aab

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

configure.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ def c_to_cpp(arg):
722722
else:
723723
definitions['CHEMISTRY_ENABLED'] = '0'
724724
definitions['NUMBER_CHEMICAL_SPECIES'] = '0'
725-
makefile_options['CHEMNET_FILE'] = ''
725+
makefile_options['CHEMNET_FILE'] = 'src/chemistry/network/none.cpp'
726726
definitions['CHEMNETWORK_HEADER'] = '../chemistry/network/chem_network.hpp'
727727

728728
# check number of species and scalars

src/chemistry/network/none.cpp

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
//========================================================================================
2+
// Athena++ astrophysical MHD code
3+
// Copyright(C) 2014 James M. Stone <jmstone@princeton.edu> and other code contributors
4+
// Licensed under the 3-clause BSD License, see LICENSE file for details
5+
//========================================================================================
6+
//! \file none.cpp
7+
//! \brief implementation of empty (default) chemical network
8+
9+
// Athena++ header
10+
#include "../../defs.hpp"
11+
#include "chem_network.hpp"
12+
#include "network.hpp"
13+
14+
// species names
15+
const std::array<std::string, NSPECIES> ChemNetwork::species_names = {};
16+

0 commit comments

Comments
 (0)