-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathTagLSRefinementCells.h
66 lines (56 loc) · 2.67 KB
/
TagLSRefinementCells.h
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
// ---------------------------------------------------------------------
//
// Copyright (c) 2019 - 2022 by the IBAMR developers
// All rights reserved.
//
//
// IBAMR is free software and is distributed under the 3-clause BSD
// license. The full text of the license can be found in the file
// COPYRIGHT at the top level directory of IBAMR.
//
// ---------------------------------------------------------------------
/////////////////////// INCLUDE GUARD ////////////////////////////////////
#ifndef included_TagLSRefinementCells
#define included_TagLSRefinementCells
///////////////////////////// INCLUDES ///////////////////////////////////
#include <ibamr/AdvDiffHierarchyIntegrator.h>
#include "BasePatchHierarchy.h"
#include "PatchHierarchy.h"
#include <tbox/DescribedClass.h>
#include <tbox/Pointer.h>
#include <string>
/*!
* Pre processing call back function to be hooked into IBAMR::HierarchyIntegrator class.
*
* This static member should be registered with an appropriate hierarchy integrator
* via registerApplyGradientDetectorCallback
*
* \param rho_idx a patch data index for the current density variable maintained by the integrator.
* \param ctx is the pointer to TagLSRefinementCells class object.
*
* \TODO: Let's move this out of the global namespace and use "snake case" for static function names.
*/
void
callTagGasLSRefinementCellsCallbackFunction(SAMRAI::tbox::Pointer<SAMRAI::hier::BasePatchHierarchy<NDIM> > hierarchy,
const int level_number,
const double error_data_time,
const int tag_index,
const bool initial_time,
const bool uses_richardson_extrapolation_too,
void* ctx);
void
callTagSolidLSRefinementCellsCallbackFunction(SAMRAI::tbox::Pointer<SAMRAI::hier::BasePatchHierarchy<NDIM> > hierarchy,
const int level_number,
const double error_data_time,
const int tag_index,
const bool initial_time,
const bool uses_richardson_extrapolation_too,
void* ctx);
struct TagLSRefinementCells
{
SAMRAI::tbox::Pointer<IBAMR::AdvDiffHierarchyIntegrator> d_adv_diff_solver;
SAMRAI::tbox::Pointer<SAMRAI::pdat::CellVariable<NDIM, double> > d_ls_var;
double d_tag_value;
double d_tag_abs_thresh;
};
#endif // #ifndef included_TagLSRefinementCells