mirror of
https://git.gfz-potsdam.de/naaice/tug.git
synced 2025-12-13 17:38:23 +01:00
Fix wrong domain_size datatype
This commit is contained in:
parent
893a2856c7
commit
21bb3d1338
@ -20,7 +20,7 @@ BTCSDiffusion::BTCSDiffusion(unsigned int dim) : grid_dim(dim) {
|
||||
deltas.resize(dim, 1);
|
||||
}
|
||||
|
||||
void BTCSDiffusion::setXDimensions(unsigned int domain_size,
|
||||
void BTCSDiffusion::setXDimensions(double domain_size,
|
||||
unsigned int n_grid_cells) {
|
||||
assert(this->grid_dim > 0);
|
||||
this->domain_size[0] = domain_size;
|
||||
@ -29,7 +29,7 @@ void BTCSDiffusion::setXDimensions(unsigned int domain_size,
|
||||
updateInternals();
|
||||
}
|
||||
|
||||
void BTCSDiffusion::setYDimensions(unsigned int domain_size,
|
||||
void BTCSDiffusion::setYDimensions(double domain_size,
|
||||
unsigned int n_grid_cells) {
|
||||
assert(this->grid_dim > 1);
|
||||
this->domain_size[1] = domain_size;
|
||||
@ -38,7 +38,7 @@ void BTCSDiffusion::setYDimensions(unsigned int domain_size,
|
||||
updateInternals();
|
||||
}
|
||||
|
||||
void BTCSDiffusion::setZDimensions(unsigned int domain_size,
|
||||
void BTCSDiffusion::setZDimensions(double domain_size,
|
||||
unsigned int n_grid_cells) {
|
||||
assert(this->grid_dim > 2);
|
||||
this->domain_size[2] = domain_size;
|
||||
|
||||
@ -48,7 +48,7 @@ public:
|
||||
* @param n_grid_cells Number of grid cells in x direction the domain is
|
||||
* divided to.
|
||||
*/
|
||||
void setXDimensions(unsigned int domain_size, unsigned int n_grid_cells);
|
||||
void setXDimensions(double domain_size, unsigned int n_grid_cells);
|
||||
|
||||
/*!
|
||||
* Define the grid in y direction.
|
||||
@ -59,7 +59,7 @@ public:
|
||||
* @param n_grid_cells Number of grid cells in y direction the domain is
|
||||
* divided to.
|
||||
*/
|
||||
void setYDimensions(unsigned int domain_size, unsigned int n_grid_cells);
|
||||
void setYDimensions(double domain_size, unsigned int n_grid_cells);
|
||||
|
||||
/*!
|
||||
* Define the grid in z direction.
|
||||
@ -70,7 +70,7 @@ public:
|
||||
* @param n_grid_cells Number of grid cells in z direction the domain is
|
||||
* divided to.
|
||||
*/
|
||||
void setZDimensions(unsigned int domain_size, unsigned int n_grid_cells);
|
||||
void setZDimensions(double domain_size, unsigned int n_grid_cells);
|
||||
|
||||
/*!
|
||||
* Returns the number of grid cells in x direction.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user