Skip to content
Snippets Groups Projects
Commit c8310a19 authored by Chichi Lalescu's avatar Chichi Lalescu
Browse files

actually sample vorticity for rotations

also, remove hardcoded lack of activity/rotation.
parent f06df485
No related branches found
No related tags found
1 merge request!23WIP: Feature/use cmake
Pipeline #36449 passed
...@@ -42,7 +42,6 @@ int NSVEcomplex_particles<rnumber>::initialize(void) ...@@ -42,7 +42,6 @@ int NSVEcomplex_particles<rnumber>::initialize(void)
current_p2p_computer.setEnable(this->enable_p2p); current_p2p_computer.setEnable(this->enable_p2p);
particles_inner_computer<double, long long int> current_particles_inner_computer(inner_v0); particles_inner_computer<double, long long int> current_particles_inner_computer(inner_v0);
this->enable_inner = false;
current_particles_inner_computer.setEnable(enable_inner); current_particles_inner_computer.setEnable(enable_inner);
...@@ -94,7 +93,11 @@ int NSVEcomplex_particles<rnumber>::step(void) ...@@ -94,7 +93,11 @@ int NSVEcomplex_particles<rnumber>::step(void)
if(this->enable_vorticity_omega){ if(this->enable_vorticity_omega){
*this->tmp_vec_field = this->fs->cvorticity->get_cdata(); *this->tmp_vec_field = this->fs->cvorticity->get_cdata();
this->tmp_vec_field->ift(); this->tmp_vec_field->ift();
this->ps->completeLoopWithVorticity(this->dt, *this->tmp_vec_field); std::unique_ptr<double[]> sampled_vorticity(new double[3*this->ps->getLocalNbParticles()]);
std::fill_n(sampled_vorticity.get(), 3*this->ps->getLocalNbParticles(), 0);
this->ps->sample_compute_field(*this->tmp_vec_field, sampled_vorticity.get());
DEBUG_MSG("sampled vorticity is %g\n", sampled_vorticity[0]);
this->ps->completeLoopWithVorticity(this->dt, sampled_vorticity.get());
} }
else{ else{
this->ps->completeLoop(this->dt); this->ps->completeLoop(this->dt);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment