Skip to content

Commit

Permalink
SampleGenerator now takes integer parameters.
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamer2368 committed Dec 20, 2023
1 parent 355fdd8 commit 7dd8018
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/sample_generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ SampleGenerator::SampleGenerator(MPI_Comm comm)
std::string param_type = config.GetRequiredOptionFromDict<std::string>("type", param_list[p]);

if (param_type == "double") params[p] = new DoubleParam(param_key, param_list[p]);
else if (param_type == "integer") params[p] = new IntegerParam(param_key, param_list[p]);
else if (param_type == "filename") params[p] = new FilenameParam(param_key, param_list[p]);
else mfem_error("SampleGenerator: Unknown parameter type!\n");
} // for (int p = 0; p < num_sampling_params; p++)
Expand Down

0 comments on commit 7dd8018

Please sign in to comment.