mirror of
https://git.gfz-potsdam.de/naaice/tug.git
synced 2025-12-13 17:38:23 +01:00
Merge branch 'domain_size_fix' into 'main'
Fix wrong domain_size datatype See merge request mluebke/diffusion!6
This commit is contained in:
commit
1d72dc1b6d
@ -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