Canoe
Comprehensive Atmosphere N' Ocean Engine
enroll_vapor_functions.cpp
Go to the documentation of this file.
1 // canoe
2 #include <air_parcel.hpp>
3 #include <configure.hpp>
4 
5 // snap
6 #include "thermodynamics.hpp"
7 
8 Real NullSatVaporPres1(AirParcel const& air, int i, int j) {
9  Real g = 1.;
10 
11 #pragma omp simd reduction(+ : g)
12  for (int n = 0; n < NCLOUD; ++n) g += -air.c[n];
13 
14  return air.w[i] / g * air.w[IPR];
15 }
16 
17 // enroll null vapor functions
19  for (int i = 0; i <= NVAPOR; ++i)
20  for (int j = 0; j < NPHASE - 1; ++j) {
22  }
23 }
Real *const w
Definition: air_parcel.hpp:36
Real *const c
cloud data
Definition: air_parcel.hpp:39
void enrollVaporFunctions()
custom functions for vapor (to be overridden by user mods)
SVPFunc1Container svp_func1_
saturation vapor pressure function: Vapor -> Cloud
void __attribute__((weak)) Thermodynamics
Real NullSatVaporPres1(AirParcel const &air, int i, int j)