zero_force.cpp
1 #include "zero_force.hpp"
2 
3 vector<Extensive> ZeroForce::operator()
4 (const Tessellation& tess,
5  const PhysicalGeometry& /*pg*/,
6  const CacheData& /*cd*/,
7  const vector<ComputationalCell>& cells,
8  const vector<Extensive>& /*fluxes*/,
9  const vector<Vector2D>& /*point_velocities*/,
10  const double /*t*/,
11  TracerStickerNames const& /*tracerstickersnames*/) const
12 {
13  vector<Extensive> res(static_cast<size_t>(tess.GetPointNo()));
14  size_t N = res.size();
15  for (size_t i = 0; i < N; ++i)
16  res[i].tracers.resize(cells[0].tracers.size(), 0);
17  return res;
18 }
Abstract class for tessellation.
virtual int GetPointNo(void) const =0
Get Total number of mesh generating points.
Zero external force module.
Container for cache data.
Definition: cache_data.hpp:14
Class for keeping the names of the tracers and stickers.
Base class for physical geometry.