8 #ifndef RM_INTERFACE_C_H
9 #define RM_INTERFACE_C_H
12 #define IRM_DLL_EXPORT __declspec(dllexport)
14 #define IRM_DLL_EXPORT
17 #if defined(__cplusplus)
148 IRM_DLL_EXPORT
int RM_Create(
int nxyz, MPI_Comm comm);
150 IRM_DLL_EXPORT
int RM_Create(
int nxyz,
int nthreads);
2327 int *boundary_solution1,
2328 int *boundary_solution2,
2410 int *initial_conditions1,
2411 int *initial_conditions2,
2472 int *boundary_solution1,
2473 int *boundary_solution2,
2508 int *module_numbers,
2509 int dim_module_numbers);
2746 IRM_DLL_EXPORT
IRM_RESULT RM_RunFile(
int id,
int workers,
int initial_phreeqc,
int utility,
const char *chem_name);
2775 IRM_DLL_EXPORT
IRM_RESULT RM_RunString(
int id,
int workers,
int initial_phreeqc,
int utility,
const char * input_string);
4248 #if defined(__cplusplus)
4252 #endif // RM_INTERFACE_C_H
IRM_RESULT RM_SetTemperature(int id, double *t)
IRM_RESULT RM_SpeciesConcentrations2Module(int id, double *species_conc)
IRM_RESULT RM_GetGasCompPressures(int id, double *gas_pressure)
IRM_RESULT RM_SetSelectedOutputOn(int id, int selected_output)
IRM_RESULT RM_SetDumpFileName(int id, const char *dump_name)
IRM_RESULT RM_GetStartCell(int id, int *sc)
IRM_RESULT RM_ScreenMessage(int id, const char *str)
IRM_RESULT RM_Abort(int id, int result, const char *err_str)
IRM_RESULT RM_GetEndCell(int id, int *ec)
IRM_RESULT RM_SetRepresentativeVolume(int id, double *rv)
int RM_GetSICount(int id)
IRM_RESULT RM_MpiWorker(int id)
IRM_RESULT RM_SetErrorHandlerMode(int id, int mode)
int RM_GetGridCellCount(int id)
IRM_RESULT RM_SetPrintChemistryOn(int id, int workers, int initial_phreeqc, int utility)
IRM_RESULT RM_GetSpeciesD25(int id, double *diffc)
IRM_RESULT RM_GetDensity(int id, double *density)
int RM_GetKineticReactionsCount(int id)
IRM_RESULT RM_SetRebalanceByCell(int id, int method)
IRM_RESULT RM_GetSolutionVolume(int id, double *vol)
IRM_RESULT RM_GetSpeciesConcentrations(int id, double *species_conc)
IRM_RESULT RM_SetUnitsSSassemblage(int id, int option)
IRM_RESULT RM_StateApply(int id, int istate)
IRM_RESULT RM_SetUnitsSolution(int id, int option)
double RM_GetTime(int id)
IRM_RESULT RM_InitialPhreeqc2Module(int id, int *initial_conditions1, int *initial_conditions2, double *fraction1)
int RM_GetComponentCount(int id)
IRM_RESULT RM_SetUnitsPPassemblage(int id, int option)
int RM_GetSelectedOutputColumnCount(int id)
IRM_RESULT RM_SetPorosity(int id, double *por)
IRM_RESULT RM_SetSpeciesSaveOn(int id, int save_on)
IRM_RESULT RM_InitialPhreeqc2Concentrations(int id, double *c, int n_boundary, int *boundary_solution1, int *boundary_solution2, double *fraction1)
IRM_RESULT RM_GetSpeciesLog10Molalities(int id, double *species_log10molalities)
double RM_GetTimeConversion(int id)
int RM_GetSpeciesCount(int id)
IRM_RESULT RM_GetExchangeSpeciesName(int id, int num, char *name, int l1)
IRM_RESULT RM_InitialPhreeqcCell2Module(int id, int n, int *module_numbers, int dim_module_numbers)
int RM_GetMpiMyself(int id)
IRM_RESULT RM_CreateMapping(int id, int *grid2chem)
IRM_RESULT RM_SetMpiWorkerCallbackCookie(int id, void *cookie)
IRM_RESULT RM_InitialPhreeqc2SpeciesConcentrations(int id, double *species_c, int n_boundary, int *boundary_solution1, int *boundary_solution2, double *fraction1)
IRM_RESULT RM_SetPrintChemistryMask(int id, int *cell_mask)
IRM_RESULT RM_GetSurfaceName(int id, int num, char *name, int l1)
IRM_RESULT RM_DumpModule(int id, int dump_on, int append)
IRM_RESULT RM_RunCells(int id)
IRM_RESULT RM_SetMpiWorkerCallback(int id, int(*fcn)(int *x1, void *cookie))
IRM_RESULT RM_GetFilePrefix(int id, char *prefix, int l)
IRM_RESULT RM_DecodeError(int id, int e)
IRM_RESULT RM_StateSave(int id, int istate)
IRM_RESULT RM_SetTimeConversion(int id, double conv_factor)
int RM_Create(int nxyz, int nthreads)
IRM_RESULT RM_SetConcentrations(int id, double *c)
IRM_RESULT RM_LoadDatabase(int id, const char *db_name)
IRM_RESULT RM_LogMessage(int id, const char *str)
IRM_RESULT RM_GetSpeciesLog10Gammas(int id, double *species_log10gammas)
IRM_RESULT RM_SetPartitionUZSolids(int id, int tf)
IRM_RESULT RM_SetUnitsExchange(int id, int option)
IRM_RESULT RM_OutputMessage(int id, const char *str)
IRM_RESULT RM_GetGasComponentsName(int id, int num, char *name, int l1)
IRM_RESULT RM_MpiWorkerBreak(int id)
IRM_RESULT RM_GetSaturation(int id, double *sat_calc)
IRM_RESULT RM_SetUnitsSurface(int id, int option)
IRM_RESULT RM_SetTime(int id, double time)
int RM_GetNthSelectedOutputUserNumber(int id, int n)
IRM_RESULT RM_CloseFiles(int id)
IRM_RESULT RM_SetGasCompMoles(int id, double *gas_moles)
int RM_GetSpeciesSaveOn(int id)
IRM_RESULT RM_GetSolidSolutionComponentsName(int id, int num, char *name, int l1)
IRM_RESULT RM_GetEquilibriumPhasesName(int id, int num, char *name, int l1)
IRM_RESULT RM_GetGasCompPhi(int id, double *gas_phi)
IRM_RESULT RM_GetSelectedOutput(int id, double *so)
IRM_RESULT RM_SetPressure(int id, double *p)
IRM_RESULT RM_SetDensity(int id, double *density)
int RM_GetThreadCount(int id)
IRM_RESULT
Enumeration for PhreeqcRM function return codes.
Definition: IrmResult.h:8
IRM_RESULT RM_GetBackwardMapping(int id, int n, int *list, int *size)
int RM_GetSolidSolutionComponentsCount(int id)
IRM_RESULT RM_GetGasCompMoles(int id, double *gas_moles)
IRM_RESULT RM_ErrorMessage(int id, const char *errstr)
IRM_RESULT RM_GetSpeciesName(int id, int i, char *name, int length)
IRM_RESULT RM_SetRebalanceFraction(int id, double f)
IRM_RESULT RM_SetSaturation(int id, double *sat)
IRM_RESULT RM_StateDelete(int id, int istate)
IRM_RESULT RM_GetSelectedOutputHeading(int id, int icol, char *heading, int length)
int RM_GetEquilibriumPhasesCount(int id)
int RM_GetSelectedOutputCount(int id)
IRM_RESULT RM_SetErrorOn(int id, int tf)
IRM_RESULT RM_GetSurfaceSpeciesName(int id, int num, char *name, int l1)
IRM_RESULT RM_SetFilePrefix(int id, const char *prefix)
IRM_RESULT RM_SetGasPhaseVolume(int id, double *gas_volume)
int RM_GetGasComponentsCount(int id)
int RM_FindComponents(int id)
IRM_RESULT RM_WarningMessage(int id, const char *warn_str)
IRM_RESULT RM_GetComponent(int id, int num, char *chem_name, int l)
IRM_RESULT RM_GetExchangeName(int id, int num, char *name, int l1)
double RM_GetTimeStep(int id)
IRM_RESULT RM_OpenFiles(int id)
IRM_RESULT RM_RunFile(int id, int workers, int initial_phreeqc, int utility, const char *chem_name)
Enumeration used to return error codes.
IRM_RESULT RM_GetSpeciesZ(int id, double *z)
IRM_RESULT RM_Destroy(int id)
IRM_RESULT RM_SetCurrentSelectedOutputUserNumber(int id, int n_user)
IRM_RESULT RM_SetScreenOn(int id, int tf)
IRM_RESULT RM_GetSurfaceType(int id, int num, char *name, int l1)
IRM_RESULT RM_GetKineticReactionsName(int id, int num, char *name, int l1)
IRM_RESULT RM_GetErrorString(int id, char *errstr, int l)
IRM_RESULT RM_GetGfw(int id, double *gfw)
int RM_GetChemistryCellCount(int id)
IRM_RESULT RM_GetGasPhaseVolume(int id, double *gas_volume)
IRM_RESULT RM_GetConcentrations(int id, double *c)
IRM_RESULT RM_SetUnitsKinetics(int id, int option)
IRM_RESULT RM_SetUnitsGasPhase(int id, int option)
int RM_GetExchangeSpeciesCount(int id)
IRM_RESULT RM_RunString(int id, int workers, int initial_phreeqc, int utility, const char *input_string)
int RM_GetMpiTasks(int id)
IRM_RESULT RM_SetComponentH2O(int id, int tf)
int RM_Concentrations2Utility(int id, double *c, int n, double *tc, double *p_atm)
IRM_RESULT RM_UseSolutionDensityVolume(int id, int tf)
IRM_RESULT RM_GetSolidSolutionName(int id, int num, char *name, int l1)
int RM_GetSurfaceSpeciesCount(int id)
int RM_GetErrorStringLength(int id)
int RM_GetIPhreeqcId(int id, int i)
IRM_RESULT RM_GetSIName(int id, int num, char *name, int l1)
IRM_RESULT RM_SetTimeStep(int id, double time_step)
int RM_GetSelectedOutputRowCount(int id)