Block-Structured AMR Software Framework
AMReX_AVGDOWN_F.H
Go to the documentation of this file.
1 #ifndef AMREX_AVGDOWN_F_H
2 #define AMREX_AVGDOWN_F_H
3 #include <AMReX_Config.H>
4 
5 #ifdef BL_LANG_FORT
6 # define FORT_AVGDOWN avgdown
7 # define FORT_MAXVAL_AVGDOWN maxvalavgdwn
8 # define FORT_CV_AVGDOWN cvavgdwn
9 # define FORT_CV_AVGDOWN_STAG cvavgdwnstag
10 #else
11 # ifdef BL_FORT_USE_UPPERCASE
12 # define FORT_AVGDOWN AVGDOWN
13 # define FORT_MAXVAL_AVGDOWN MAXVALAVGDWN
14 # define FORT_CV_AVGDOWN CVAVGDWN
15 # define FORT_CV_AVGDOWN_STAG CVAVGDWNSTAG
16 # else
17 # define FORT_AVGDOWN avgdown_
18 # define FORT_MAXVAL_AVGDOWN maxvalavgdwn_
19 # define FORT_CV_AVGDOWN cvavgdwn_
20 # define FORT_CV_AVGDOWN_STAG cvavgdwnstag_
21 # endif
22 
23 #include <AMReX_ArrayLim.H>
24 
25 using amrex::Real;
26 
27 extern "C" {
28 
29  void FORT_MAXVAL_AVGDOWN (const Real* crse, AMREX_ARLIM_P(clo), AMREX_ARLIM_P(chi),
30  const int* nvar,
31  const Real* fine, AMREX_ARLIM_P(fine_lo), AMREX_ARLIM_P(fine_hi),
32  const int* lo, const int* hi, const int* ratio);
33 
34  void FORT_CV_AVGDOWN (const Real* crse, AMREX_ARLIM_P(clo), AMREX_ARLIM_P(chi),
35  const int* nvar,
36  const Real* fine, AMREX_ARLIM_P(fine_lo), AMREX_ARLIM_P(fine_hi),
37  const int* lo, const int* hi, const int* ratio);
38 
39  void FORT_CV_AVGDOWN_STAG (const int* nodal_dir,
40  const Real* crse, AMREX_ARLIM_P(clo), AMREX_ARLIM_P(chi),
41  const int* nvar,
42  const Real* fine, AMREX_ARLIM_P(fine_lo), AMREX_ARLIM_P(fine_hi),
43  const int* lo, const int* hi, const int* ratio);
44 
45  void FORT_AVGDOWN (const Real* crse, AMREX_ARLIM_P(clo), AMREX_ARLIM_P(chi),
46  const int* nvar,
47  const Real* fine, AMREX_ARLIM_P(fine_lo), AMREX_ARLIM_P(fine_hi),
48  const Real* cvol, AMREX_ARLIM_P(cv_lo), AMREX_ARLIM_P(cv_hi),
49  const Real* fvol, AMREX_ARLIM_P(fv_lo), AMREX_ARLIM_P(fv_hi),
50  const int* lo, const int* hi, const int* ratio);
51 
52 }
53 
54 #endif
55 #endif /*_AVGDOWN_F_H_*/
#define FORT_AVGDOWN
Definition: AMReX_AVGDOWN_F.H:17
#define FORT_CV_AVGDOWN
Definition: AMReX_AVGDOWN_F.H:19
#define FORT_MAXVAL_AVGDOWN
Definition: AMReX_AVGDOWN_F.H:18
#define FORT_CV_AVGDOWN_STAG
Definition: AMReX_AVGDOWN_F.H:20
Array4< Real > fine
Definition: AMReX_InterpFaceRegister.cpp:90
Array4< Real const > crse
Definition: AMReX_InterpFaceRegister.cpp:92