Canoe
Comprehensive Atmosphere N' Ocean Engine
chemistry.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 // chemistry
13 #include "chemistry.hpp"
14 
15 Chemistry::Chemistry(MeshBlock *pmb, ParameterInput *pin) : pmy_block_(pmb) {
16  if (NCHEMISTRY == 0) return;
17 
18  Application::Logger app("c3m");
19  app->Log("Initialize Chemistry");
20 
21  w.InitWithShallowSlice(pmb->pscalars->r, 4, NCLOUD, NCHEMISTRY);
22  u.InitWithShallowSlice(pmb->pscalars->s, 4, NCLOUD, NCHEMISTRY);
23 }
24 
26  if (NCHEMISTRY == 0) return;
27 
28  Application::Logger app("c3m");
29  app->Log("Destroy Chemistry");
30 }
AthenaArray< Real > w
Definition: chemistry.hpp:15
Chemistry(MeshBlock *pmb, ParameterInput *pin)
Definition: chemistry.cpp:15
AthenaArray< Real > u
Definition: chemistry.hpp:15