Canoe
Comprehensive Atmosphere N' Ocean Engine
tracer.cpp
Go to the documentation of this file.
1 // athena
2 #include <athena/mesh/mesh.hpp>
3 #include <athena/parameter_input.hpp>
4 #include <athena/scalars/scalars.hpp>
5 
6 // application
7 #include <application/application.hpp>
8 
9 // canoe
10 #include <configure.hpp>
11 
12 // tracer
13 #include "tracer.hpp"
14 
15 Tracer::Tracer(MeshBlock *pmb, ParameterInput *pin) : pmy_block_(pmb) {
16  if (NTRACER == 0) return;
17 
18  Application::Logger app("tracer");
19  app->Log("Initialize Tracer");
20 
21  w.InitWithShallowSlice(pmb->pscalars->r, 4, NCLOUD + NCHEMISTRY, NTRACER);
22  u.InitWithShallowSlice(pmb->pscalars->s, 4, NCLOUD + NCHEMISTRY, NTRACER);
23 }
24 
26  if (NTRACER == 0) return;
27 
28  Application::Logger app("tracer");
29  app->Log("Destroy Tracer");
30 }
AthenaArray< Real > w
Definition: tracer.hpp:15
Tracer(MeshBlock *pmb, ParameterInput *pin)
Definition: tracer.cpp:15
~Tracer()
Definition: tracer.cpp:25
AthenaArray< Real > u
Definition: tracer.hpp:15