Skip to content

Commit 7ad71f9

Browse files
committed
Update parameters
1 parent 699f976 commit 7ad71f9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

examples/monodomain_DG3D.cc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ static constexpr unsigned int starting_level = 1;
6565

6666
// matrix-free related parameters
6767
static constexpr bool use_matrix_free_action = true;
68-
static constexpr unsigned int degree_finite_element = 2;
68+
static constexpr unsigned int degree_finite_element = 1;
6969
constexpr unsigned int n_qpoints = degree_finite_element + 1;
7070
static constexpr unsigned int n_components = 1;
7171

@@ -761,8 +761,8 @@ IonicModel<dim>::setup_problem()
761761

762762
ion_at_dofs.reinit(locally_owned_dofs, communicator);
763763

764-
Iext = std::make_unique<AppliedCurrent<dim>>(end_time_current,
765-
parameters.test_case);
764+
Iext =
765+
std::make_unique<AppliedCurrent<dim>>(end_time_current, param.test_case);
766766

767767
// // Start building R-tree
768768
namespace bgi = boost::geometry::index;
@@ -1453,9 +1453,9 @@ IonicModel<dim>::run()
14531453
GridIn<dim> grid_in;
14541454
grid_in.attach_triangulation(tria_dummy);
14551455
std::string mesh_path;
1456-
if (parameters.test_case == TestCase::Idealized)
1456+
if (param.test_case == TestCase::Idealized)
14571457
mesh_path = "../../meshes/idealized_lv.msh";
1458-
else if (parameters.test_case == TestCase::Realistic)
1458+
else if (param.test_case == TestCase::Realistic)
14591459
mesh_path = "../../meshes/realistic_lv.msh";
14601460
std::ifstream mesh_file(mesh_path);
14611461
grid_in.read_msh(mesh_file);
@@ -1643,7 +1643,7 @@ main(int argc, char *argv[])
16431643
parameters.test_case = TestCase::Idealized;
16441644
parameters.fe_degree = degree_finite_element;
16451645
parameters.dt = 1e-4;
1646-
parameters.final_time = parameters.dt * 10;
1646+
parameters.final_time = 0.4;
16471647
parameters.final_time_current = 3e-3;
16481648
parameters.compute_min_value = false;
16491649
parameters.output_frequency = 1;

0 commit comments

Comments
 (0)