Canoe
Comprehensive Atmosphere N' Ocean Engine
radiation_utils.hpp
Go to the documentation of this file.
1 #ifndef SRC_HARP_RADIATION_UTILS_HPP_
2 #define SRC_HARP_RADIATION_UTILS_HPP_
3 
4 // C/C++ header
5 #include <athena/athena.hpp>
6 #include <string>
7 #include <vector>
8 
9 #include "radiation.hpp"
10 
11 /*void WriteTopFlux(std::string fname) const;
12 void WriteTopRadiance(std::string fname) const;
13 void WriteOpticalDepth(std::string fname) const;
14 void WriteHeatingRate(std::string fname, AthenaArray<Real> const& flux,
15  AthenaArray<Real> const& hr, Real const* level); */
16 
17 void read_radiation_directions(std::vector<Direction> *ray, std::string str);
18 void set_radiation_flags(uint64_t *flags, std::string str);
19 
20 void get_phase_momentum(Real *pmom, int iphas, Real gg, int npmom);
21 void packSpectralProperties(Real *buf, Real const *tau, Real const *ssa,
22  Real const *pmom, int nlayer, int npmom);
23 void unpackSpectralProperties(Real *tau, Real *ssa, Real *pmom, Real const *buf,
24  int slyr, int npmom, int nblocks,
25  int npmom_max = -1);
26 
27 #endif // SRC_HARP_RADIATION_UTILS_HPP_
void unpackSpectralProperties(Real *tau, Real *ssa, Real *pmom, Real const *buf, int slyr, int npmom, int nblocks, int npmom_max=-1)
void get_phase_momentum(Real *pmom, int iphas, Real gg, int npmom)
void set_radiation_flags(uint64_t *flags, std::string str)
void packSpectralProperties(Real *buf, Real const *tau, Real const *ssa, Real const *pmom, int nlayer, int npmom)
void read_radiation_directions(std::vector< Direction > *ray, std::string str)