Skip to content

Commit

Permalink
fix compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
fbischoff committed Oct 29, 2023
1 parent 349d21c commit 1d80855
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/examples/heat2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ int main(int argc, char** argv) {
real_tensor expnt(1), coeff(1);
expnt[0] = 1.0/(4.0*c*tstep*0.5);
coeff[0] = pow(4.0*constants::pi*c*tstep*0.5,-1.5);
real_convolution_3d G(world, coeff, expnt);
real_convolution_3d G(world, coeff, expnt, 1.e-4, 1.e-4);

// Propagate forward 50 time steps
real_function_3d u = u0;
Expand Down
4 changes: 2 additions & 2 deletions src/examples/tdse_example.cc
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ void converge(World& world, functionT& potn, functionT& psi, double& eps) {

Tensor<double> coeff(1); coeff[0] = 1.0/pow(constants::pi*tmax,1.5);
Tensor<double> expnt(1); expnt[0] = 1.0/tmax;
operatorT* op = new operatorT(world,coeff,expnt);
operatorT* op = new operatorT(world,coeff,expnt,0.0,0.0);

for (int iter=0; iter<20; iter++) {
if (world.rank() == 0) print("ITER",iter);
Expand All @@ -197,7 +197,7 @@ void converge(World& world, functionT& potn, functionT& psi, double& eps) {
delete op;
coeff[0] = 1.0/sqrt(constants::pi*tmax);
expnt[0] = 1.0/tmax;
op = new operatorT(world,coeff,expnt);
op = new operatorT(world,coeff,expnt,0.0,0.0);
}
}
delete op;
Expand Down

0 comments on commit 1d80855

Please sign in to comment.