Skip to content

Commit

Permalink
add levels as a parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
mclarsen committed May 5, 2020
1 parent 4caf970 commit fbfe2b2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/blueprint/conduit_blueprint_mesh_examples.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2931,6 +2931,7 @@ void julia_nestsets_complex(index_t nx,
float64 y_max,
float64 c_re,
float64 c_im,
index_t levels,
Node &res)
{
res.reset();
Expand All @@ -2942,7 +2943,6 @@ void julia_nestsets_complex(index_t nx,
float64 threshold = 10.; // 2nd derivitive flag threshold
int32 min_size = 4; // min num zones for refine
float64 efficiency = .80; // target boxs count(flags)/size > effeciency
int32 levels = 4; // number of levels to generate

int32 curr_domain = 0;
int32 domain_count = 1;
Expand Down
1 change: 1 addition & 0 deletions src/libs/blueprint/conduit_blueprint_mesh_examples.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ namespace examples
conduit::float64 y_max,
conduit::float64 c_re,
conduit::float64 c_im,
conduit::index_t levels,
conduit::Node &res);


Expand Down
1 change: 1 addition & 0 deletions src/tests/blueprint/t_blueprint_mesh_examples.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,7 @@ TEST(conduit_blueprint_mesh_examples, mesh_julia_nestset)
-2.0, 2.0, // x range
-2.0, 2.0, // y range
0.285, 0.01, // c value
3, // amr levels
res["julia_complex"]);

int ndoms = res["julia_complex"].number_of_children();
Expand Down

0 comments on commit fbfe2b2

Please sign in to comment.