Skip to content

Commit

Permalink
fix the NAD1D test
Browse files Browse the repository at this point in the history
  • Loading branch information
tjira committed May 22, 2024
1 parent 34f4c23 commit c5d7a7e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/nad1d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ int test_nad1d(int, char**) {
ModelSystem system(2000, {{"0.01*tanh(0.6*x)", "0.001*exp(-x^2)"}, {"0.001*exp(-x^2)", "-0.01*tanh(0.6*x)"}}, {"x"}, {-24, 24}, 4096);

// create the classical solver options with some parameters
ModelSolver::OptionsDynamics opt; opt.iters = 350, opt.momentum = {10.95}, opt.position = {-10}, opt.state = 1;
opt.seed = 1, opt.step = 10, opt.trajs = 10, opt.gradient = {"0.006/cosh(0.6*x)^2", "-0.006/cosh(0.6*x)^2"};
ModelSolver::OptionsDynamics opt; opt.iters = 350, opt.momentum = {10.95}, opt.position = {-10}, opt.state = 1; opt.seed = 1, opt.step = 10;
opt.trajs = 10, opt.gradient = {{"0.006/cosh(0.6*x)^2", "-0.002*x*exp(-x^2)"}, {"-0.002*x*exp(-x^2)", "-0.006/cosh(0.6*x)^2"}};
opt.adiabatic = false, opt.savetraj = false;

// create the solver and perform the dynamics
Result res = ModelSolver(opt).run(system, {}, false);
Expand Down

0 comments on commit c5d7a7e

Please sign in to comment.