Changeset a150d0
- Timestamp:
- Apr 25, 2012, 4:21:08 PM (14 years ago)
- Children:
- 7dd744
- Parents:
- b51c3b
- Location:
- src/interface
- Files:
-
- 3 edited
-
interface_fcs.cpp (modified) (7 diffs)
-
interface_fcs.h (modified) (1 diff)
-
interface_particles.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/interface/interface_fcs.cpp
rb51c3b ra150d0 58 58 static vmg_float box_size = -1.0; 59 59 static vmg_int near_field_cells = -1; 60 static vmg_int interpolation_degree = -1; 60 61 static MPI_Comm mpi_comm; 61 62 } … … 64 65 vmg_int smoothing_steps, vmg_int gamma, vmg_float precision, 65 66 vmg_float* box_offset, vmg_float box_size, 66 vmg_int near_field_cells, MPI_Comm mpi_comm) 67 vmg_int near_field_cells, vmg_int interpolation_degree, 68 MPI_Comm mpi_comm) 67 69 { 68 70 VMGBackupSettings::level = level; … … 75 77 VMGBackupSettings::box_size = box_size; 76 78 VMGBackupSettings::near_field_cells = near_field_cells; 79 VMGBackupSettings::interpolation_degree = interpolation_degree; 77 80 VMGBackupSettings::mpi_comm = mpi_comm; 78 81 … … 163 166 new ObjectStorage<int>("MAX_ITERATION", max_iter); 164 167 new ObjectStorage<int>("PARTICLE_NEAR_FIELD_CELLS", near_field_cells); 168 new ObjectStorage<int>("PARTICLE_INTERPOLATION_DEGREE", interpolation_degree); 165 169 166 170 /* … … 178 182 vmg_int smoothing_steps, vmg_int gamma, vmg_float precision, 179 183 vmg_float* box_offset, vmg_float box_size, 180 vmg_int near_field_cells, MPI_Comm mpi_comm) 184 vmg_int near_field_cells, vmg_int interpolation_degree, 185 MPI_Comm mpi_comm) 181 186 { 182 187 if (VMGBackupSettings::level != level || … … 193 198 VMGBackupSettings::box_size != box_size || 194 199 VMGBackupSettings::near_field_cells != near_field_cells || 200 VMGBackupSettings::interpolation_degree != interpolation_degree || 195 201 VMGBackupSettings::mpi_comm != mpi_comm) { 196 202 … … 199 205 smoothing_steps, gamma, precision, 200 206 box_offset, box_size, near_field_cells, 201 mpi_comm);207 interpolation_degree, mpi_comm); 202 208 203 209 } -
src/interface/interface_fcs.h
rb51c3b ra150d0 16 16 fcs_int smoothing_steps, fcs_int gamma, fcs_float precision, 17 17 fcs_float* box_offset, fcs_float box_size, 18 fcs_int near_field_cells, MPI_Comm mpi_comm); 18 fcs_int near_field_cells, fcs_int interpolation_degree, 19 MPI_Comm mpi_comm); 19 20 20 21 int VMG_fcs_check(); -
src/interface/interface_particles.cpp
rb51c3b ra150d0 102 102 vmg_float length; 103 103 Vector dist_vec; 104 InterpolatePolynomial ip(8);105 104 106 105 #ifdef DEBUG_OUTPUT … … 119 118 */ 120 119 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"); 122 122 vmg_float* p = factory.GetObjectStorageArray<vmg_float>("PARTICLE_POTENTIAL_ARRAY"); 123 123 vmg_float* f = factory.GetObjectStorageArray<vmg_float>("PARTICLE_FIELD_ARRAY"); 124 125 InterpolatePolynomial ip(interpolation_degree); 124 126 125 127 const vmg_float r_cut = (near_field_cells+0.5) * grid.Extent().MeshWidth().Max();
Note:
See TracChangeset
for help on using the changeset viewer.
