Cholla 3.0.1-dev
Cholla - Massively parallel hydro on GPUs
Loading...
Searching...
No Matches
potential_paris_3D.h
1#pragma once
2
3#if defined(GRAVITY) && defined(PARIS)
4
5 #include "../global/global.h"
6 #include "paris/ParisPeriodic.hpp"
7
8class PotentialParis3D
9{
10 public:
11 PotentialParis3D();
12 ~PotentialParis3D();
13 void Get_Potential(const Real *density, Real *potential, Real g, Real massInfo, Real a);
14 void Initialize(Real lx, Real ly, Real lz, Real xMin, Real yMin, Real zMin, int nx, int ny, int nz, int nxReal,
15 int nyReal, int nzReal, Real dx, Real dy, Real dz);
16 void Reset();
17
18 protected:
19 int dn_[3];
20 Real dr_[3], lo_[3], lr_[3], myLo_[3];
21 ParisPeriodic *pp_;
22 long minBytes_;
23 long densityBytes_;
24 long potentialBytes_;
25 Real *da_;
26 Real *db_;
27};
28
29#endif
Periodic Poisson solver using Henry FFT filter.
Definition ParisPeriodic.hpp:9