clear;clc;node = 5;% Set the path for phreeqcRMd.dll, RM_interface_C.h, and database. RM_lib_path = 'C:\GitPrograms\phreeqcrm-bmi\_build_openmp_vs\INSTALL\lib\PhreeqcRMd.dll';RM_header_path = 'C:\GitPrograms\phreeqcrm-bmi\_build_openmp_vs\INSTALL\include\RM_interface_C.h';RM_lib_path = 'C:\GitPrograms\phreeqcrm-bmi\_build_openmp_vs\INSTALL\bin\PhreeqcRMd.dll';RM_header_path = 'C:\GitPrograms\phreeqcrm-bmi\_build_openmp_vs\INSTALL\include\RM_interface_C.h';Database_path = 'C:\GitPrograms\phreeqcrm-bmi\_build_openmp_vs\INSTALL\database\phreeqc.dat';if ~libisloaded('PhreeqcRMd') loadlibrary(RM_lib_path, RM_header_path);endphr_model = calllib('PhreeqcRMd', 'RM_Create', node, -1);phr_model2 = calllib('PhreeqcRMd', 'RM_Create', node, -1);disp(phr_model)disp(phr_model2)disp 'We are done'
3 4We are done>>