Ignore:
Timestamp:
Apr 25, 2012, 4:21:08 PM (14 years ago)
Author:
Julian Iseringhausen <isering@…>
Children:
7dd744
Parents:
b51c3b
Message:

vmg: Added parameter to control the interpolation degree (Tensor Lagrange interpolation) for interpolating the potentials from the grid to the particle positions.

git-svn-id: https://svn.version.fz-juelich.de/scafacos/trunk@1742 5161e1c8-67bf-11de-9fd5-51895aff932f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/interface/interface_particles.cpp

    rb51c3b ra150d0  
    102102  vmg_float length;
    103103  Vector dist_vec;
    104   InterpolatePolynomial ip(8);
    105104
    106105#ifdef DEBUG_OUTPUT
     
    119118   */
    120119  const vmg_int& num_particles_local = factory.GetObjectStorageVal<vmg_int>("PARTICLE_NUM_LOCAL");
    121   const int& near_field_cells = factory.GetObjectStorageVal<int>("PARTICLE_NEAR_FIELD_CELLS");
     120  const vmg_int& near_field_cells = factory.GetObjectStorageVal<int>("PARTICLE_NEAR_FIELD_CELLS");
     121  const vmg_int& interpolation_degree = factory.GetObjectStorageVal<int>("PARTICLE_INTERPOLATION_DEGREE");
    122122  vmg_float* p = factory.GetObjectStorageArray<vmg_float>("PARTICLE_POTENTIAL_ARRAY");
    123123  vmg_float* f = factory.GetObjectStorageArray<vmg_float>("PARTICLE_FIELD_ARRAY");
     124
     125  InterpolatePolynomial ip(interpolation_degree);
    124126
    125127  const vmg_float r_cut = (near_field_cells+0.5) * grid.Extent().MeshWidth().Max();
Note: See TracChangeset for help on using the changeset viewer.