mirror of
https://git.gfz-potsdam.de/naaice/poet.git
synced 2025-12-16 04:48:23 +01:00
Add support for importing and exporting initial grid in InitialList class
This commit is contained in:
parent
5d4a05fe9b
commit
d8dddf14f2
@ -31,6 +31,9 @@ void InitialList::importList(const Rcpp::List &setup) {
|
||||
this->porosity = Rcpp::as<std::vector<double>>(
|
||||
setup[static_cast<int>(ExportList::GRID_POROSITY)]);
|
||||
|
||||
this->initial_grid =
|
||||
Rcpp::List(setup[static_cast<int>(ExportList::GRID_INITIAL)]);
|
||||
|
||||
this->transport_names = Rcpp::as<std::vector<std::string>>(
|
||||
setup[static_cast<int>(ExportList::DIFFU_TRANSPORT)]);
|
||||
this->boundaries =
|
||||
@ -61,6 +64,7 @@ Rcpp::List InitialList::exportList() {
|
||||
out[static_cast<int>(ExportList::GRID_CONSTANT)] =
|
||||
Rcpp::wrap(this->constant_cells);
|
||||
out[static_cast<int>(ExportList::GRID_POROSITY)] = Rcpp::wrap(this->porosity);
|
||||
out[static_cast<int>(ExportList::GRID_INITIAL)] = this->initial_grid;
|
||||
|
||||
out[static_cast<int>(ExportList::DIFFU_TRANSPORT)] =
|
||||
Rcpp::wrap(this->transport_names);
|
||||
|
||||
@ -35,6 +35,7 @@ private:
|
||||
GRID_SPATIAL,
|
||||
GRID_CONSTANT,
|
||||
GRID_POROSITY,
|
||||
GRID_INITIAL,
|
||||
DIFFU_TRANSPORT,
|
||||
DIFFU_BOUNDARIES,
|
||||
DIFFU_ALPHA_X,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user