mirror of
https://git.gfz-potsdam.de/naaice/iphreeqc.git
synced 2025-12-16 16:44:49 +01:00
Reversed logic to NO_STATIC_VOPTS, default is now static vopts. No changes to Makefile or project needed now.
git-svn-id: svn://136.177.114.72/svn_GW/phreeqc3/trunk@6771 1feff8c3-07ed-0310-ac33-dd36852eb9cd
This commit is contained in:
parent
8823f0ff2f
commit
0ca9654356
@ -243,10 +243,10 @@ ChartObject::Set_axis_scale(CParser & parser)
|
||||
bool
|
||||
ChartObject::Read(CParser & parser)
|
||||
{
|
||||
#if defined(STATIC_VOPTS)
|
||||
static std::vector < std::string > vopts;
|
||||
#else
|
||||
#if defined(NO_STATIC_VOPTS)
|
||||
std::vector < std::string > vopts;
|
||||
#else
|
||||
static std::vector < std::string > vopts;
|
||||
#endif
|
||||
if (vopts.empty())
|
||||
{
|
||||
|
||||
@ -179,10 +179,10 @@ cxxExchComp::read_raw(CParser & parser, bool check)
|
||||
{
|
||||
std::string str;
|
||||
|
||||
#if defined(STATIC_VOPTS)
|
||||
static std::vector < std::string > vopts;
|
||||
#else
|
||||
#if defined(NO_STATIC_VOPTS)
|
||||
std::vector < std::string > vopts;
|
||||
#else
|
||||
static std::vector < std::string > vopts;
|
||||
#endif
|
||||
if (vopts.empty())
|
||||
{
|
||||
|
||||
@ -196,10 +196,10 @@ cxxExchange::dump_raw(std::ostream & s_oss, unsigned int indent, int *n_out) con
|
||||
void
|
||||
cxxExchange::read_raw(CParser & parser, bool check)
|
||||
{
|
||||
#if defined(STATIC_VOPTS)
|
||||
static std::vector < std::string > vopts;
|
||||
#else
|
||||
#if defined(NO_STATIC_VOPTS)
|
||||
std::vector < std::string > vopts;
|
||||
#else
|
||||
static std::vector < std::string > vopts;
|
||||
#endif
|
||||
if (vopts.empty())
|
||||
{
|
||||
|
||||
@ -62,10 +62,10 @@ cxxGasComp::read_raw(CParser & parser, bool check)
|
||||
{
|
||||
std::string str;
|
||||
|
||||
#if defined(STATIC_VOPTS)
|
||||
static std::vector < std::string > vopts;
|
||||
#else
|
||||
#if defined(NO_STATIC_VOPTS)
|
||||
std::vector < std::string > vopts;
|
||||
#else
|
||||
static std::vector < std::string > vopts;
|
||||
#endif
|
||||
if (vopts.empty())
|
||||
{
|
||||
|
||||
@ -273,10 +273,10 @@ cxxGasPhase::read_raw(CParser & parser, bool check)
|
||||
{
|
||||
|
||||
int i;
|
||||
#if defined(STATIC_VOPTS)
|
||||
static std::vector < std::string > vopts;
|
||||
#else
|
||||
#if defined(NO_STATIC_VOPTS)
|
||||
std::vector < std::string > vopts;
|
||||
#else
|
||||
static std::vector < std::string > vopts;
|
||||
#endif
|
||||
if (vopts.empty())
|
||||
{
|
||||
|
||||
@ -134,10 +134,10 @@ cxxKineticsComp::read_raw(CParser & parser, bool check)
|
||||
{
|
||||
std::string str;
|
||||
|
||||
#if defined(STATIC_VOPTS)
|
||||
static std::vector < std::string > vopts;
|
||||
#else
|
||||
#if defined(NO_STATIC_VOPTS)
|
||||
std::vector < std::string > vopts;
|
||||
#else
|
||||
static std::vector < std::string > vopts;
|
||||
#endif
|
||||
if (vopts.empty())
|
||||
{
|
||||
|
||||
@ -125,10 +125,10 @@ cxxPPassemblage::dump_raw(std::ostream & s_oss, unsigned int indent, int *n_out)
|
||||
void
|
||||
cxxPPassemblage::read_raw(CParser & parser, bool check)
|
||||
{
|
||||
#if defined(STATIC_VOPTS)
|
||||
static std::vector < std::string > vopts;
|
||||
#else
|
||||
#if defined(NO_STATIC_VOPTS)
|
||||
std::vector < std::string > vopts;
|
||||
#else
|
||||
static std::vector < std::string > vopts;
|
||||
#endif
|
||||
if (vopts.empty())
|
||||
{
|
||||
|
||||
@ -106,10 +106,10 @@ cxxPPassemblageComp::read_raw(CParser & parser, bool check)
|
||||
{
|
||||
std::string str;
|
||||
|
||||
#if defined(STATIC_VOPTS)
|
||||
static std::vector < std::string > vopts;
|
||||
#else
|
||||
#if defined(NO_STATIC_VOPTS)
|
||||
std::vector < std::string > vopts;
|
||||
#else
|
||||
static std::vector < std::string > vopts;
|
||||
#endif
|
||||
if (vopts.empty())
|
||||
{
|
||||
|
||||
@ -198,10 +198,10 @@ cxxPressure::read_raw(CParser & parser)
|
||||
bool cleared_once = false;
|
||||
LDBLE d;
|
||||
CParser::TOKEN_TYPE k;
|
||||
#if defined(STATIC_VOPTS)
|
||||
static std::vector < std::string > vopts;
|
||||
#else
|
||||
#if defined(NO_STATIC_VOPTS)
|
||||
std::vector < std::string > vopts;
|
||||
#else
|
||||
static std::vector < std::string > vopts;
|
||||
#endif
|
||||
if (vopts.empty())
|
||||
{
|
||||
|
||||
@ -131,10 +131,10 @@ cxxReaction::read_raw(CParser & parser, const bool check)
|
||||
int j;
|
||||
LDBLE d;
|
||||
CParser::TOKEN_TYPE k;
|
||||
#if defined(STATIC_VOPTS)
|
||||
static std::vector < std::string > vopts;
|
||||
#else
|
||||
#if defined(NO_STATIC_VOPTS)
|
||||
std::vector < std::string > vopts;
|
||||
#else
|
||||
static std::vector < std::string > vopts;
|
||||
#endif
|
||||
if (vopts.empty())
|
||||
{
|
||||
|
||||
6
SS.cxx
6
SS.cxx
@ -126,10 +126,10 @@ cxxSS::read_raw(CParser & parser, bool check)
|
||||
{
|
||||
std::string str;
|
||||
|
||||
#if defined(STATIC_VOPTS)
|
||||
static std::vector < std::string > vopts;
|
||||
#else
|
||||
#if defined(NO_STATIC_VOPTS)
|
||||
std::vector < std::string > vopts;
|
||||
#else
|
||||
static std::vector < std::string > vopts;
|
||||
#endif
|
||||
if (vopts.empty())
|
||||
{
|
||||
|
||||
@ -126,10 +126,10 @@ cxxSSassemblage::dump_raw(std::ostream & s_oss, unsigned int indent, int *n_out)
|
||||
void
|
||||
cxxSSassemblage::read_raw(CParser & parser, bool check)
|
||||
{
|
||||
#if defined(STATIC_VOPTS)
|
||||
static std::vector < std::string > vopts;
|
||||
#else
|
||||
#if defined(NO_STATIC_VOPTS)
|
||||
std::vector < std::string > vopts;
|
||||
#else
|
||||
static std::vector < std::string > vopts;
|
||||
#endif
|
||||
if (vopts.empty())
|
||||
{
|
||||
|
||||
@ -92,10 +92,10 @@ cxxSScomp::read_raw(CParser & parser, bool check)
|
||||
{
|
||||
std::string str;
|
||||
|
||||
#if defined(STATIC_VOPTS)
|
||||
static std::vector < std::string > vopts;
|
||||
#else
|
||||
#if defined(NO_STATIC_VOPTS)
|
||||
std::vector < std::string > vopts;
|
||||
#else
|
||||
static std::vector < std::string > vopts;
|
||||
#endif
|
||||
if (vopts.empty())
|
||||
{
|
||||
|
||||
@ -292,10 +292,10 @@ cxxSolution::dump_raw(std::ostream & s_oss, unsigned int indent, int *n_out) con
|
||||
void
|
||||
cxxSolution::read_raw(CParser & parser, bool check)
|
||||
{
|
||||
#if defined(STATIC_VOPTS)
|
||||
static std::vector < std::string > vopts;
|
||||
#else
|
||||
#if defined(NO_STATIC_VOPTS)
|
||||
std::vector < std::string > vopts;
|
||||
#else
|
||||
static std::vector < std::string > vopts;
|
||||
#endif
|
||||
if (vopts.empty())
|
||||
{
|
||||
|
||||
@ -95,10 +95,10 @@ cxxSolutionIsotope::dump_raw(std::ostream & s_oss, unsigned int indent) const
|
||||
}
|
||||
void cxxSolutionIsotope::read_raw(CParser & parser, bool check )
|
||||
{
|
||||
#if defined(STATIC_VOPTS)
|
||||
static std::vector < std::string > vopts;
|
||||
#else
|
||||
#if defined(NO_STATIC_VOPTS)
|
||||
std::vector < std::string > vopts;
|
||||
#else
|
||||
static std::vector < std::string > vopts;
|
||||
#endif
|
||||
if (vopts.empty())
|
||||
{
|
||||
|
||||
@ -138,10 +138,10 @@ void StorageBinList::SetAll(bool tf)
|
||||
bool StorageBinList::Read(CParser & parser)
|
||||
{
|
||||
bool return_value(true);
|
||||
#if defined(STATIC_VOPTS)
|
||||
static std::vector < std::string > vopts;
|
||||
#else
|
||||
#if defined(NO_STATIC_VOPTS)
|
||||
std::vector < std::string > vopts;
|
||||
#else
|
||||
static std::vector < std::string > vopts;
|
||||
#endif
|
||||
if (vopts.empty())
|
||||
{
|
||||
|
||||
@ -234,10 +234,10 @@ cxxSurface::dump_raw(std::ostream & s_oss, unsigned int indent, int *n_out) cons
|
||||
void
|
||||
cxxSurface::read_raw(CParser & parser, bool check)
|
||||
{
|
||||
#if defined(STATIC_VOPTS)
|
||||
static std::vector < std::string > vopts;
|
||||
#else
|
||||
#if defined(NO_STATIC_VOPTS)
|
||||
std::vector < std::string > vopts;
|
||||
#else
|
||||
static std::vector < std::string > vopts;
|
||||
#endif
|
||||
int i = 0;
|
||||
if (vopts.empty())
|
||||
|
||||
@ -118,10 +118,10 @@ cxxSurfaceCharge::read_raw(CParser & parser, bool check)
|
||||
{
|
||||
std::string str;
|
||||
|
||||
#if defined(STATIC_VOPTS)
|
||||
static std::vector < std::string > vopts;
|
||||
#else
|
||||
#if defined(NO_STATIC_VOPTS)
|
||||
std::vector < std::string > vopts;
|
||||
#else
|
||||
static std::vector < std::string > vopts;
|
||||
#endif
|
||||
if (vopts.empty())
|
||||
{
|
||||
|
||||
@ -114,10 +114,10 @@ cxxSurfaceComp::read_raw(CParser & parser, bool check)
|
||||
{
|
||||
std::string str;
|
||||
|
||||
#if defined(STATIC_VOPTS)
|
||||
static std::vector < std::string > vopts;
|
||||
#else
|
||||
#if defined(NO_STATIC_VOPTS)
|
||||
std::vector < std::string > vopts;
|
||||
#else
|
||||
static std::vector < std::string > vopts;
|
||||
#endif
|
||||
if (vopts.empty())
|
||||
{
|
||||
|
||||
@ -236,10 +236,10 @@ cxxTemperature::read_raw(CParser & parser)
|
||||
// clear steps for modify operation, if pressures are read
|
||||
bool cleared_once = false;
|
||||
|
||||
#if defined(STATIC_VOPTS)
|
||||
static std::vector < std::string > vopts;
|
||||
#else
|
||||
#if defined(NO_STATIC_VOPTS)
|
||||
std::vector < std::string > vopts;
|
||||
#else
|
||||
static std::vector < std::string > vopts;
|
||||
#endif
|
||||
if (vopts.empty())
|
||||
{
|
||||
|
||||
@ -187,10 +187,10 @@ cxxKinetics::read_raw(CParser & parser, bool check)
|
||||
{
|
||||
|
||||
LDBLE d;
|
||||
#if defined(STATIC_VOPTS)
|
||||
static std::vector < std::string > vopts;
|
||||
#else
|
||||
#if defined(NO_STATIC_VOPTS)
|
||||
std::vector < std::string > vopts;
|
||||
#else
|
||||
static std::vector < std::string > vopts;
|
||||
#endif
|
||||
if (vopts.empty())
|
||||
{
|
||||
|
||||
@ -95,10 +95,10 @@ cxxMix::read_raw(CParser & parser)
|
||||
|
||||
int i;
|
||||
LDBLE d;
|
||||
#if defined(STATIC_VOPTS)
|
||||
static std::vector < std::string > vopts;
|
||||
#else
|
||||
#if defined(NO_STATIC_VOPTS)
|
||||
std::vector < std::string > vopts;
|
||||
#else
|
||||
static std::vector < std::string > vopts;
|
||||
#endif
|
||||
if (vopts.empty())
|
||||
{
|
||||
|
||||
@ -33,10 +33,10 @@ void dumper::SetAll(bool tf)
|
||||
bool dumper::Read(CParser & parser)
|
||||
{
|
||||
bool return_value(true);
|
||||
#if defined(STATIC_VOPTS)
|
||||
static std::vector < std::string > vopts;
|
||||
#else
|
||||
#if defined(NO_STATIC_VOPTS)
|
||||
std::vector < std::string > vopts;
|
||||
#else
|
||||
static std::vector < std::string > vopts;
|
||||
#endif
|
||||
if (vopts.empty())
|
||||
{
|
||||
|
||||
@ -28,10 +28,10 @@ bool runner::Read(CParser & parser)
|
||||
{
|
||||
|
||||
bool return_value(true);
|
||||
#if defined(STATIC_VOPTS)
|
||||
static std::vector < std::string > vopts;
|
||||
#else
|
||||
#if defined(NO_STATIC_VOPTS)
|
||||
std::vector < std::string > vopts;
|
||||
#else
|
||||
static std::vector < std::string > vopts;
|
||||
#endif
|
||||
if (vopts.empty())
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user