48 Commits

Author SHA1 Message Date
rastogi
02a7d4d93a computeStats not working correctly, Unit Tests added 2025-09-01 12:39:01 +02:00
Max Lübke
599088d964 Refactor build process
Now include/app paths are combined in the src dir.
2024-03-06 11:26:52 +01:00
Max Lübke
ba65f72984 feat: make storage of input values in DHT optional 2023-09-08 22:43:52 +02:00
Max Luebke
c5a991c4c9 feat: implement SEXP export of Field structure
feat: implement NamedVector based on Rcpp::NumericVector

feat: remove hard coded checks and substitute by R hook functions,
defined in the input script

refactor: modify API of DHT_Wrapper/InterpolationModule to expect a work
package structure, where input/output values are stored as 2D vectors

test: add tests for NamedVector

test: extend tests for Field
2023-08-17 10:51:54 +02:00
Max Luebke
164406ff25 feat: enable interpolation without DHT lookup 2023-08-10 14:15:26 +02:00
Max Luebke
20db291bae fix: add includes to macros 2023-08-09 14:16:09 +02:00
Marco De Lucia
8707da42c3 MDL: replaced all cout/cerr with macros MSG, ERRMSG... 2023-08-09 12:22:03 +02:00
Marco De Lucia
b08697f9d4 MDL: added include/poet/Macros.hpp 2023-08-09 12:20:55 +02:00
Max Luebke
37ee74faaf perf: remove unused parameters from paramlist and parameter structure
doc: update doc to latest changes

data: update benchmarks to latest changes
2023-08-02 14:00:14 +02:00
Max Luebke
0c2597d97f feat: introduce LookupKey and rounding schemes
feat: implement data clustering using PHT

feat: implement interpolation

refactor: use named vector for DHT species definition and significant digits

data: remove unusable input scripts

data: move Phreeqc database to benchmark dir

refactor: rename dolomite benchmark directory

refactor: remove DHT prop type from input script
2023-08-01 18:34:50 +02:00
Max Luebke
d9964e0427 refactor: implement R runtime as singleton pattern 2023-07-21 12:51:56 +02:00
Max Luebke
bae5e96b7a refactor: remove support for PhreeqcRM support 2023-07-21 12:43:57 +02:00
Max Luebke
55dffe9308 feat: toggle progressbar by commandline option 2023-07-12 12:56:36 +02:00
Max Lübke
f9da7830f2 fix: re-enable DHT correctly
feat: store excess H and O instead of total values
2023-04-24 16:58:48 +02:00
Max Luebke
89fc291e79 BREAKING CHANGE: use Field data structure instead of plain 1D vector to
store concentrations
2023-04-24 14:25:55 +02:00
Max Luebke
5492560f6c feat: add surface module 2023-04-17 15:52:27 +02:00
Max Luebke
1716382b84 refactor: remove bits/stdint-uintn.h as header 2023-04-17 12:37:43 +02:00
Max Luebke
3fdf586e0d BREAKING CHANGE: use dump mechanism of PhreeqcRM-GFZ to get and set
internal variables

feat: enables exchange

data: added exchange only benchmark

data: applied required changes to benchmarks
2023-04-17 12:37:43 +02:00
Max Luebke
607b939208 fix: remove unnecessary RoundToZero function from DiffusionModule 2023-04-13 17:26:18 +02:00
Max Luebke
9f290d584a fix: remove openssl includes 2023-03-31 15:18:56 +02:00
Max Luebke
f1a10a9b22 fix: use Murmur hashing for DHT lookup 2023-03-28 14:27:00 +02:00
Max Luebke
32d35190cb fix: write fields using R after chem simulation 2023-03-07 13:44:41 +01:00
Max Luebke
e6819b59bc BREAKING CHANGE: Introduce ChemistryModule as extension of PhreeqcRM 2023-03-07 13:44:41 +01:00
Max Luebke
a493054f9d refactor: In SimParams, relocate trivial getter/setters to header file
refactor: change vector data types of dht_signif_vector and
dht_prop_type_vector to both uint32
2023-03-06 18:07:41 +01:00
Max Luebke
fc79d1d0a8 refactor: DHT_Wrapper class
feat: add setters to DHT_Wrapper to set prop type vector and signif
vector

refactor: remove dependency from SimParams structure

feat: introduce new header defining DHT types
2023-03-06 18:07:41 +01:00
Max Luebke
86db80ffc3 feat: add Field data structure as substitution of field declaration
using std::vector
2023-03-03 15:41:11 +01:00
Max Luebke
8142a10d00 refactor: combine DHT results to one struct
This struct stores both used keys and resulting data with work package
size and Phreeqc mapping during call of `checkDHT`.

This makes a second fuzzing of keys during `fillDHT` obsolete.
2023-01-24 16:11:03 +01:00
Max Lübke
9e4aea38e3 fix: set all values less than 10E-14 to zero 2023-01-24 16:10:08 +01:00
Max Lübke
5ef228c27f refactor: pass work packages as constant reference to DHT functions 2023-01-24 16:10:08 +01:00
Max Lübke
4118fe4ed0 fix: handle negative values in keyelement with significant as signed integer 2023-01-24 16:10:08 +01:00
Max Lübke
14cb03e746 feat: use new rounding function and datatype for keys 2023-01-24 16:10:08 +01:00
Max Lübke
38d6b299a9 refactor: move key and data size calculation to DHT_Wrapper 2023-01-24 16:10:08 +01:00
Max Lübke
f32a3f3342 perf: return SimParams as const 2023-01-24 16:10:08 +01:00
Max Luebke
16eb78ae31 fix: do pre-copy of fields in grid class
The idea is to later define chains of module in the input script by
setting an input and output field and the according function to call.

Currently, the code is not ready for such a chain, but the change is
done in advance.
2023-01-23 16:36:54 +01:00
Max Luebke
f53a69f014 refactor: remove comments from code in Grid class 2023-01-23 15:06:27 +01:00
Max Luebke
689c55bf32 refactor: make Grid class a bit more generic 2023-01-23 14:57:26 +01:00
Max Luebke
2e675d8139 fix: setting of inner constant cells 2023-01-06 10:56:05 +01:00
Max Luebke
ded8fbd0ae BREAKING CHANGE: utilize PhreeqcRM and bring back old DHT bindings 2023-01-06 10:56:01 +01:00
Max Luebke
8d13748545 refactor: rename ChemSim to ChemSeq
refactor: introduce new base class BaseChemModule for both sequential
and parallel chemistry module

refactor: iterative loop of simulations in poet application via template
function

This should make the application code more readable.
2023-01-06 10:51:03 +01:00
Max Luebke
aed9cb3395 BREAKING CHANGE: substitute R bindings of Phreeqc by PhreeqcRM 2023-01-06 10:51:03 +01:00
Max Luebke
df08e38b9a fix: missing namespace of phreeqcrm leads to ambiguous macro names 2023-01-06 10:51:02 +01:00
Max Luebke
99d937eaf6 refactor: decouple ChemSim to ChemSimSeq and ChemSimPar
refactor: cleanup of header files
2023-01-06 10:51:02 +01:00
Max Luebke
d0307bb48b fix: replace deprecated calls to MD5 functions
perf: keep EVP context in memory during lifetime of DHT_Wrapper
2022-12-01 16:46:58 +01:00
Max Lübke
f78842c6d6 perf: remove RRuntime as there is no need anymore 2022-11-10 16:06:12 +01:00
Max Lübke
8f89a5268c refactor: cleanup of code, renaming of chemsitry module function and some output added to the diffusion module 2022-11-10 16:06:11 +01:00
Max Lübke
8dd2bd192d feat: enable parallelization with tug 2022-11-10 16:06:11 +01:00
Max Lübke
28b59ff6c3 BREAKING CHANGE: integrate 'tug' as diffusion module
It is now possible to run a simulation for one iteration in sequential
mode without the use of Rmufits.

According scripts are provided.

refactor: TransportSim renamed to DiffusionModule

refactor: parsing of R input script is now done outside of simulation
modules (except ChemSim)
2022-11-10 16:06:08 +01:00
Max Lübke
67a89cde94 build: move headers to include
build: instead of several libraries, build one lib and link to poet
application
2022-10-05 12:16:53 +02:00