Skip to content

Commit

Permalink
actually, more seeds, more print out seeds
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolemarsaglia committed Jan 22, 2024
1 parent 994e269 commit a3f368e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3887,6 +3887,7 @@ VTKHParticleAdvection::execute()
float x = seedBBox[0] + dx * distribution(generator);
float y = seedBBox[2] + dy * distribution(generator);
float z = seedBBox[4] + dz * distribution(generator);
std::cerr << "seed " << i << ": " << x << " " << y << " " << z << std::endl;
seeds.push_back(vtkm::Particle({x,y,z}, i));
}
auto seedArray = vtkm::cont::make_ArrayHandle(seeds, vtkm::CopyFlag::On);
Expand Down
10 changes: 5 additions & 5 deletions src/tests/ascent/t_ascent_particle_advection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ void testFilter(bool isStreamline)
// filter knobs
conduit::Node &sl_params = pipelines["pl1/f1/params"];
sl_params["field"] = "vel";
sl_params["num_seeds"] = 1;
sl_params["num_seeds"] = 30;
sl_params["num_steps"] = 100;
sl_params["step_size"] = 0.01;
sl_params["seed_bounding_box_xmin"] = 0.0;
Expand Down Expand Up @@ -135,13 +135,13 @@ void testFilter(bool isStreamline)
scenes["s1/plots/p1/field"] = "lines";
scenes["s1/plots/p1/pipeline"] = "pl1";
scenes["s1/image_prefix"] = output_image;
scenes["s1/renders/r1/image_name"] = output_image + "_azimuth0";
scenes["s1/renders/r1/image_name"] = output_image + "_azimuth0_30seed";
scenes["s1/renders/r1/camera/azimuth"] = 0;
scenes["s1/renders/r2/image_name"] = output_image + "_azimuth90";
scenes["s1/renders/r2/image_name"] = output_image + "_azimuth90_30seed";
scenes["s1/renders/r2/camera/azimuth"] = 90;
scenes["s1/renders/r3/image_name"] = output_image + "_azimuth180";
scenes["s1/renders/r3/image_name"] = output_image + "_azimuth180_30seed";
scenes["s1/renders/r3/camera/azimuth"] = 180;
scenes["s1/renders/r4/image_name"] = output_image + "_azimuth270";
scenes["s1/renders/r4/image_name"] = output_image + "_azimuth270_30seed";
scenes["s1/renders/r4/camera/azimuth"] = 270;

// remove old image before rendering
Expand Down

0 comments on commit a3f368e

Please sign in to comment.