Skip to content

Commit

Permalink
Squashed 'src/phast/PhreeqcRM/' changes from 0b094796..bfe6cff1
Browse files Browse the repository at this point in the history
bfe6cff1 Merge commit '3aa145af1b351881075d58dc46edbd5961209499'
3aa145af Squashed 'src/' changes from 1336703a..ce8a68fa

git-subtree-dir: src/phast/PhreeqcRM
git-subtree-split: bfe6cff149dfc6f4f6cb5ac56e5ce83550bc7211
  • Loading branch information
Darth Vader committed Aug 15, 2024
1 parent 7a565fc commit aa17ca7
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/IPhreeqcPhast/IPhreeqc/IPhreeqc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,7 @@ void IPhreeqc::SetBasicCallback(double (*fcn)(double x1, double x2, const char *
this->PhreeqcPtr->register_basic_callback(fcn, cookie1);
}
#ifdef IPHREEQC_NO_FORTRAN_MODULE
void IPhreeqc::SetBasicFortranCallback(double (*fcn)(double *x1, double *x2, char *str, size_t l))
void IPhreeqc::SetBasicFortranCallback(double (*fcn)(double *x1, double *x2, const char *str, size_t l))
{
this->PhreeqcPtr->register_fortran_basic_callback(fcn);
}
Expand Down
2 changes: 1 addition & 1 deletion src/IPhreeqcPhast/IPhreeqc/IPhreeqc.h
Original file line number Diff line number Diff line change
Expand Up @@ -1711,7 +1711,7 @@ Headings
* @include ic
*/
#ifdef IPHREEQC_NO_FORTRAN_MODULE
IPQ_DLL_EXPORT IPQ_RESULT SetBasicFortranCallback(int id, double (*fcn)(double *x1, double *x2, char *str, size_t l));
IPQ_DLL_EXPORT IPQ_RESULT SetBasicFortranCallback(int id, double (*fcn)(double *x1, double *x2, const char *str, size_t l));
#else
IPQ_DLL_EXPORT IPQ_RESULT SetBasicFortranCallback(int id, double (*fcn)(double *x1, double *x2, const char *str, int l));
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/IPhreeqcPhast/IPhreeqc/IPhreeqc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ class IPQ_DLL_EXPORT IPhreeqc : public PHRQ_io
* @see SetBasicCallback
*/
#ifdef IPHREEQC_NO_FORTRAN_MODULE
void SetBasicFortranCallback(double (*fcn)(double *x1, double *x2, char *str, size_t l));
void SetBasicFortranCallback(double (*fcn)(double *x1, double *x2, const char *str, size_t l));
#else
void SetBasicFortranCallback(double (*fcn)(double *x1, double *x2, const char *str, int l));
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/IPhreeqcPhast/IPhreeqc/IPhreeqcLib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,7 @@ SetBasicCallback(int id, double (*fcn)(double x1, double x2, const char *str, vo
#if !defined(R_SO)
#ifdef IPHREEQC_NO_FORTRAN_MODULE
IPQ_RESULT
SetBasicFortranCallback(int id, double (*fcn)(double *x1, double *x2, char *str, size_t l))
SetBasicFortranCallback(int id, double (*fcn)(double *x1, double *x2, const char *str, size_t l))
{
IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
if (IPhreeqcPtr)
Expand Down
2 changes: 1 addition & 1 deletion src/IPhreeqcPhast/IPhreeqc/IPhreeqc_interface_F.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ RunStringF(int *id, char* input)
}
#ifdef IPHREEQC_NO_FORTRAN_MODULE
IPQ_RESULT
SetBasicFortranCallbackF(int *id, double (*fcn)(double *x1, double *x2, char *str, size_t l))
SetBasicFortranCallbackF(int *id, double (*fcn)(double *x1, double *x2, const char *str, size_t l))
{
return ::SetBasicFortranCallback(*id, fcn);
}
Expand Down
2 changes: 1 addition & 1 deletion src/IPhreeqcPhast/IPhreeqc/IPhreeqc_interface_F.h
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ extern "C" {
IPQ_DLL_EXPORT int RunFileF(int *id, char* filename);
IPQ_DLL_EXPORT int RunStringF(int *id, char* input);
#ifdef IPHREEQC_NO_FORTRAN_MODULE
IPQ_DLL_EXPORT IPQ_RESULT SetBasicFortranCallbackF(int *id, double (*fcn)(double *x1, double *x2, char *str, size_t l));
IPQ_DLL_EXPORT IPQ_RESULT SetBasicFortranCallbackF(int *id, double (*fcn)(double *x1, double *x2, const char *str, size_t l));
#else
IPQ_DLL_EXPORT IPQ_RESULT SetBasicFortranCallbackF(int *id, double (*fcn)(double *x1, double *x2, const char *str, int l));
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/IPhreeqcPhast/IPhreeqc/fimpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ IPQ_DLL_EXPORT int IPQ_DECL IPQ_CASE_UND(runstring, RUNSTRING, runstring_, RUNS
{
return RunStringF(id, input, len);
}
IPQ_DLL_EXPORT int IPQ_DECL IPQ_CASE_UND(setbasicfortrancallback, SETBASICFORTRANCALLBACK, setbasicfortrancallback_, SETBASICFORTRANCALLBACK_)(int *id, double (*fcn)(double *x1, double *x2, char *str, size_t l))
IPQ_DLL_EXPORT int IPQ_DECL IPQ_CASE_UND(setbasicfortrancallback, SETBASICFORTRANCALLBACK, setbasicfortrancallback_, SETBASICFORTRANCALLBACK_)(int *id, double (*fcn)(double *x1, double *x2, const char *str, size_t l))
{
return SetBasicFortranCallbackF(id, fcn);
}
Expand Down
2 changes: 1 addition & 1 deletion src/IPhreeqcPhast/IPhreeqc/fwrap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ RunStringF(int *id, char* input, size_t input_length)
}

IPQ_RESULT
SetBasicFortranCallbackF(int *id, double (*fcn)(double *x1, double *x2, char *str, size_t l))
SetBasicFortranCallbackF(int *id, double (*fcn)(double *x1, double *x2, const char *str, size_t l))
{
return ::SetBasicFortranCallback(*id, fcn);
}
Expand Down
2 changes: 1 addition & 1 deletion src/IPhreeqcPhast/IPhreeqc/fwrap.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ extern "C" {
int RunAccumulatedF(int *id);
int RunFileF(int *id, char* filename, size_t filename_length);
int RunStringF(int *id, char* input, size_t input_length);
IPQ_RESULT SetBasicFortranCallbackF(int *id, double (*fcn)(double *x1, double *x2, char *str, size_t l));
IPQ_RESULT SetBasicFortranCallbackF(int *id, double (*fcn)(double *x1, double *x2, const char *str, size_t l));
IPQ_RESULT SetCurrentSelectedOutputUserNumberF(int *id, int *n);
IPQ_RESULT SetDumpFileNameF(int *id, char* fname, size_t fname_length);
IPQ_RESULT SetDumpFileOnF(int *id, int* dump_on);
Expand Down
6 changes: 3 additions & 3 deletions src/IPhreeqcPhast/IPhreeqc/phreeqcpp/Phreeqc.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,13 @@ class Phreeqc
int basic_run(char* commands, void* lnbase, void* vbase, void* lpbase);
void basic_free(void);
#ifdef IPHREEQC_NO_FORTRAN_MODULE
double basic_callback(double x1, double x2, char* str);
double basic_callback(double x1, double x2, const char* str);
#else
double basic_callback(double x1, double x2, const char* str);
#endif
void register_basic_callback(double (*fcn)(double x1, double x2, const char* str, void* cookie), void* cookie1);
#ifdef IPHREEQC_NO_FORTRAN_MODULE
void register_fortran_basic_callback(double (*fcn)(double* x1, double* x2, char* str, size_t l));
void register_fortran_basic_callback(double (*fcn)(double* x1, double* x2, const char* str, size_t l));
#else
void register_fortran_basic_callback(double (*fcn)(double* x1, double* x2, const char* str, int l));
#endif
Expand Down Expand Up @@ -1661,7 +1661,7 @@ class Phreeqc
double (*basic_callback_ptr) (double x1, double x2, const char* str, void* cookie);
void* basic_callback_cookie;
#ifdef IPHREEQC_NO_FORTRAN_MODULE
double (*basic_fortran_callback_ptr) (double* x1, double* x2, char* str, size_t l);
double (*basic_fortran_callback_ptr) (double* x1, double* x2, const char* str, size_t l);
#else
double (*basic_fortran_callback_ptr) (double* x1, double* x2, const char* str, int l);
#endif
Expand Down
6 changes: 3 additions & 3 deletions src/IPhreeqcPhast/IPhreeqc/phreeqcpp/basicsubs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4242,7 +4242,7 @@ basic_callback(double x1, double x2, const char * str)

#ifdef IPHREEQC_NO_FORTRAN_MODULE
double Phreeqc::
basic_callback(double x1, double x2, char * str)
basic_callback(double x1, double x2, const char * str)
#else
double Phreeqc::
basic_callback(double x1, double x2, const char * str)
Expand All @@ -4253,7 +4253,7 @@ basic_callback(double x1, double x2, const char * str)

if (basic_callback_ptr != NULL)
{
return (*basic_callback_ptr) (x1, x2, (const char *) str, basic_callback_cookie);
return (*basic_callback_ptr) (x1, x2, str, basic_callback_cookie);
}
if (basic_fortran_callback_ptr != NULL)
{
Expand All @@ -4274,7 +4274,7 @@ Phreeqc::register_basic_callback(double (*fcn)(double x1, double x2, const char
}
#ifdef IPHREEQC_NO_FORTRAN_MODULE
void
Phreeqc::register_fortran_basic_callback(double ( *fcn)(double *x1, double *x2, char *str, size_t l))
Phreeqc::register_fortran_basic_callback(double ( *fcn)(double *x1, double *x2, const char *str, size_t l))
{
this->basic_fortran_callback_ptr = fcn;
}
Expand Down

0 comments on commit aa17ca7

Please # to comment.