aboutsummaryrefslogtreecommitdiff
path: root/Source/Parallelization/GuardCellManager.H
blob: 9f2bafa1903b1a9829990a10ee7c19ee6b05723e (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:

    int 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 allocated for each multifab
    amrex::IntVect ng_alloc_EB = amrex::IntVect::TheZeroVector();
    amrex::IntVect ng_alloc_J = amrex::IntVect::TheZeroVector();
    amrex::IntVect ng_alloc_Rho = amrex::IntVect::TheZeroVector();
    amrex::IntVect ng_alloc_F = amrex::IntVect::TheZeroVector();
    int ng_alloc_F_int = 0;

    // Guard cells exchanged for specific in the PIC loop
    amrex::IntVect ng_FieldSolver = amrex::IntVect::TheZeroVector();
    amrex::IntVect ng_FieldGather = amrex::IntVect::TheZeroVector();
    amrex::IntVect ng_UpdateAux = amrex::IntVect::TheZeroVector();
    amrex::IntVect ng_MovingWindow = amrex::IntVect::TheZeroVector();

    // Extra guard cells for fine level of E and B
    amrex::IntVect ng_Extra = amrex::IntVect::TheZeroVector();
};

#endif // GUARDCELLMANAGER_H_