aboutsummaryrefslogtreecommitdiff
path: root/Source/Parallelization/GuardCellManager.H
blob: e241eed751f989f7d5012461b91ad6790aa59932 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef GUARDCELLMANAGER_H_
#define GUARDCELLMANAGER_H_

#include <AMReX_IntVect.H>

class guardCellManager{

public:

    void Init(
        const bool do_subcycling,
        const bool do_fdtd_nci_corr,
        const bool do_nodal,
        const bool do_moving_window,
        const bool do_fft_mpi_dec,
        const bool aux_is_nodal,
        const int moving_window_dir,
        const int nox,
        const int nox_fft, const int noy_fft, const int noz_fft,
        const int nci_corr_stencil,
        const int maxwell_fdtd_solver_id,
        const int max_level);

    // Guard cells to initialize multifabs
    amrex::IntVect ngExtra = amrex::IntVect::TheZeroVector();
    amrex::IntVect ngE = amrex::IntVect::TheZeroVector();
    amrex::IntVect ngJ = amrex::IntVect::TheZeroVector();
    amrex::IntVect ngRho = amrex::IntVect::TheZeroVector();
    amrex::IntVect ngF = amrex::IntVect::TheZeroVector();
    int ngF_int = 0;

    // Guard cells to exchange data
    amrex::IntVect ng_FieldSolver = amrex::IntVect::TheZeroVector();
    amrex::IntVect ng_FieldGather = amrex::IntVect::TheZeroVector();
    amrex::IntVect ngJ_CurrentDepo = amrex::IntVect::TheZeroVector();
    amrex::IntVect ng_MovingWindow = amrex::IntVect::TheZeroVector();
    amrex::IntVect ng_NCIFilter = amrex::IntVect::TheZeroVector();
    amrex::IntVect ng_Aux = amrex::IntVect::TheZeroVector();
};

#endif // GUARDCELLMANAGER_H_