mirror of
https://git.gfz-potsdam.de/naaice/iphreeqc.git
synced 2025-12-15 16:18:22 +01:00
[iphreeqc] Changes for CRAN 3.4.7
This commit is contained in:
parent
ed9af14319
commit
3e57c50456
@ -250,6 +250,9 @@ $(DATADIR)/databases.rda : $(DBS) build-databases.R
|
|||||||
ex15.ascii : $(EXDIR)/ex15.dat
|
ex15.ascii : $(EXDIR)/ex15.dat
|
||||||
perl -pe 's/[^[:ascii:]]/?/g' $< > $@
|
perl -pe 's/[^[:ascii:]]/?/g' $< > $@
|
||||||
|
|
||||||
|
ex21.ascii : $(EXDIR)/ex21
|
||||||
|
perl -pe 's/[^[:ascii:]]/?/g' $< > $@
|
||||||
|
|
||||||
%.ascii : $(DBDIR)/%.dat
|
%.ascii : $(DBDIR)/%.dat
|
||||||
perl -pe 's/[^[:ascii:]]/?/g' $< > $@
|
perl -pe 's/[^[:ascii:]]/?/g' $< > $@
|
||||||
|
|
||||||
|
|||||||
@ -33,7 +33,7 @@ ex18 <- scan("../phreeqc3-examples/ex18", what="", sep="\n")
|
|||||||
ex19 <- scan("../phreeqc3-examples/ex19", what="", sep="\n")
|
ex19 <- scan("../phreeqc3-examples/ex19", what="", sep="\n")
|
||||||
ex20a <- scan("../phreeqc3-examples/ex20a", what="", sep="\n")
|
ex20a <- scan("../phreeqc3-examples/ex20a", what="", sep="\n")
|
||||||
ex20b <- scan("../phreeqc3-examples/ex20b", what="", sep="\n")
|
ex20b <- scan("../phreeqc3-examples/ex20b", what="", sep="\n")
|
||||||
ex21 <- scan("../phreeqc3-examples/ex21", what="", sep="\n")
|
ex21 <- scan("ex21.ascii", what="", sep="\n")
|
||||||
ex22 <- scan("../phreeqc3-examples/ex22", what="", sep="\n")
|
ex22 <- scan("../phreeqc3-examples/ex22", what="", sep="\n")
|
||||||
|
|
||||||
save(list = ls(all=TRUE), file="phreeqc/data/examples.rda")
|
save(list = ls(all=TRUE), file="phreeqc/data/examples.rda")
|
||||||
|
|||||||
@ -15,6 +15,8 @@
|
|||||||
#include "Utils.h"
|
#include "Utils.h"
|
||||||
#include "Solution.h"
|
#include "Solution.h"
|
||||||
|
|
||||||
|
#define register
|
||||||
|
|
||||||
/* Run-time library for PhreeqcPtr->use with "p2c", the Pascal to C translator */
|
/* Run-time library for PhreeqcPtr->use with "p2c", the Pascal to C translator */
|
||||||
|
|
||||||
/* "p2c" Copyright (C) 1989, 1990, 1991 Free Software Foundation.
|
/* "p2c" Copyright (C) 1989, 1990, 1991 Free Software Foundation.
|
||||||
|
|||||||
@ -5,6 +5,8 @@
|
|||||||
#include "Phreeqc.h"
|
#include "Phreeqc.h"
|
||||||
#include "phqalloc.h"
|
#include "phqalloc.h"
|
||||||
|
|
||||||
|
#define register
|
||||||
|
|
||||||
/* debug
|
/* debug
|
||||||
#define DEBUG_CL1
|
#define DEBUG_CL1
|
||||||
#define CHECK_ERRORS
|
#define CHECK_ERRORS
|
||||||
|
|||||||
@ -3780,7 +3780,7 @@ CVsldet(CVodeMem cv_mem)
|
|||||||
rd2c = rd1c - rd1d;
|
rd2c = rd1c - rd1d;
|
||||||
rd3a = rd2a - rd2b;
|
rd3a = rd2a - rd2b;
|
||||||
rd3b = rd2b - rd2c;
|
rd3b = rd2b - rd2c;
|
||||||
rd3b = rd3b;
|
/* rd3b = rd3b; */
|
||||||
|
|
||||||
if (ABS(rd1b) < TINY * smax[k])
|
if (ABS(rd1b) < TINY * smax[k])
|
||||||
{
|
{
|
||||||
|
|||||||
@ -3054,8 +3054,8 @@ ss_binary(cxxSS *ss_ptr)
|
|||||||
xb2 = xb * xb;
|
xb2 = xb * xb;
|
||||||
xb3 = xb2 * xb;
|
xb3 = xb2 * xb;
|
||||||
xb4 = xb3 * xb;
|
xb4 = xb3 * xb;
|
||||||
xb4 = xb4;
|
/* xb4 = xb4; */
|
||||||
xc3 = xc3;
|
/* xc3 = xc3; */
|
||||||
|
|
||||||
/* used derivation that did not substitute x2 = 1-x1 */
|
/* used derivation that did not substitute x2 = 1-x1 */
|
||||||
|
|
||||||
|
|||||||
@ -285,7 +285,7 @@ print_diffuse_layer(cxxSurfaceCharge *charge_ptr)
|
|||||||
output_msg(sformatf(
|
output_msg(sformatf(
|
||||||
"\n\tSpecies \t Moles \tMoles excess\t g\n"));
|
"\n\tSpecies \t Moles \tMoles excess\t g\n"));
|
||||||
}
|
}
|
||||||
if (mass_water_surface = charge_ptr->Get_mass_water())
|
if ((mass_water_surface = charge_ptr->Get_mass_water()))
|
||||||
{
|
{
|
||||||
count_elts = 0;
|
count_elts = 0;
|
||||||
paren_count = 0;
|
paren_count = 0;
|
||||||
|
|||||||
@ -142,7 +142,7 @@ read_solution_spread(void)
|
|||||||
copy_token(token, &ptr);
|
copy_token(token, &ptr);
|
||||||
if (token[0] == '-')
|
if (token[0] == '-')
|
||||||
{
|
{
|
||||||
opt = opt;
|
/* opt = opt; */
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -155,7 +155,7 @@ read_solution_spread(void)
|
|||||||
case 10: /* water */
|
case 10: /* water */
|
||||||
if ((count == 2 || count == 3) && num == TRUE)
|
if ((count == 2 || count == 3) && num == TRUE)
|
||||||
{
|
{
|
||||||
opt = opt;
|
/* opt = opt; */
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -167,7 +167,7 @@ read_solution_spread(void)
|
|||||||
if ((count == 2 || count == 3 || count == 4)
|
if ((count == 2 || count == 3 || count == 4)
|
||||||
&& num == TRUE)
|
&& num == TRUE)
|
||||||
{
|
{
|
||||||
opt = opt;
|
/* opt = opt; */
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -179,7 +179,7 @@ read_solution_spread(void)
|
|||||||
case 8: /* unit */
|
case 8: /* unit */
|
||||||
if (count == 2)
|
if (count == 2)
|
||||||
{
|
{
|
||||||
opt = opt;
|
/* opt = opt; */
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -193,7 +193,7 @@ read_solution_spread(void)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
opt = opt;
|
/* opt = opt; */
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 11: /* isotope_uncertainty */
|
case 11: /* isotope_uncertainty */
|
||||||
@ -205,7 +205,7 @@ read_solution_spread(void)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
opt = opt;
|
/* opt = opt; */
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 14: /* pressure */
|
case 14: /* pressure */
|
||||||
|
|||||||
@ -763,7 +763,7 @@ transport(void)
|
|||||||
*/
|
*/
|
||||||
if (b_c != 1)
|
if (b_c != 1)
|
||||||
j = 1;
|
j = 1;
|
||||||
for (j = j; j <= nmix; j++)
|
for (/* j = j */; j <= nmix; j++)
|
||||||
{
|
{
|
||||||
if (multi_Dflag && j == nmix && (transport_step % print_modulus == 0))
|
if (multi_Dflag && j == nmix && (transport_step % print_modulus == 0))
|
||||||
{
|
{
|
||||||
|
|||||||
@ -6,6 +6,8 @@
|
|||||||
#include "Solution.h"
|
#include "Solution.h"
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
||||||
|
#define register
|
||||||
|
|
||||||
/* ---------------------------------------------------------------------- */
|
/* ---------------------------------------------------------------------- */
|
||||||
int Phreeqc::
|
int Phreeqc::
|
||||||
add_elt_list(struct elt_list *elt_list_ptr, LDBLE coef)
|
add_elt_list(struct elt_list *elt_list_ptr, LDBLE coef)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user