mirror of
https://git.gfz-potsdam.de/naaice/poet.git
synced 2025-12-15 12:28:22 +01:00
Compare commits
2 Commits
53f1416b96
...
caf35851b5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
caf35851b5 | ||
|
|
0ac85d5db0 |
@ -158,7 +158,7 @@ int parseInitValues(int argc, char **argv, RuntimeParameters ¶ms) {
|
|||||||
"Enable AI surrogate for chemistry module");
|
"Enable AI surrogate for chemistry module");
|
||||||
ai_option_group
|
ai_option_group
|
||||||
->add_option("--ai-backend", params.ai_backend,
|
->add_option("--ai-backend", params.ai_backend,
|
||||||
"Desired ai backend (0: python (keras), 1: naa, 2: cuda)")
|
"Desired ai backend (1: python (keras), 2: naa)")
|
||||||
->check(CLI::PositiveNumber)
|
->check(CLI::PositiveNumber)
|
||||||
->default_val(RuntimeParameters::AI_BACKEND_DEFAULT);
|
->default_val(RuntimeParameters::AI_BACKEND_DEFAULT);
|
||||||
|
|
||||||
@ -386,9 +386,9 @@ static Rcpp::List RunMasterLoop(RInsidePOET &R, const RuntimeParameters ¶ms,
|
|||||||
// data frame with elements that are used as ai outputs for the
|
// data frame with elements that are used as ai outputs for the
|
||||||
// retraining step.
|
// retraining step.
|
||||||
|
|
||||||
if (params.ai || params.copy_non_reactive_regions) {
|
chem.getField().update(diffusion.getField());
|
||||||
|
|
||||||
chem.getField().update(diffusion.getField());
|
if (params.ai || params.copy_non_reactive_regions) {
|
||||||
|
|
||||||
R["TMP"] = Rcpp::wrap(chem.getField().AsVector());
|
R["TMP"] = Rcpp::wrap(chem.getField().AsVector());
|
||||||
R.parseEval(
|
R.parseEval(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user