ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
ERF_ReadFromERFBdy.H
Go to the documentation of this file.
1 /**
2  * \file ERF_ReadFromERFBdy.H
3  */
4 #ifndef ERF_READ_FROM_ERFBDY_H_
5 #define ERF_READ_FROM_ERFBDY_H_
6 
7 #include <AMReX_FArrayBox.H>
8 #include <AMReX_Vector.H>
9 
10 // Read metadata and time values from erfbdy Header.
11 // The domain box stored in the header must match the domain of the run that is
12 // reading the file; this is how we catch an erfbdy file left behind by a run with
13 // a different domain.
14 // Returns bdy_time_interval.
15 double
16 read_times_from_erfbdy (const std::string& bdy_file_name,
17  const amrex::Box& domain,
18  int& ntimes,
19  int& nvars,
20  int& real_width,
21  amrex::Vector<double>& bdy_times,
22  double& start_bdy_time,
23  double& final_bdy_time);
24 
25 // Read a single time index from erfbdy file.
26 void
27 read_from_erfbdy (int itime,
28  const std::string& bdy_file_name,
29  amrex::Vector<amrex::Vector<amrex::FArrayBox>>& bdy_data_xlo,
30  amrex::Vector<amrex::Vector<amrex::FArrayBox>>& bdy_data_xhi,
31  amrex::Vector<amrex::Vector<amrex::FArrayBox>>& bdy_data_ylo,
32  amrex::Vector<amrex::Vector<amrex::FArrayBox>>& bdy_data_yhi,
33  int nvars, int real_width);
34 
35 #endif
@ nvars
Definition: ERF_DataStruct.H:194
double read_times_from_erfbdy(const std::string &bdy_file_name, const amrex::Box &domain, int &ntimes, int &nvars, int &real_width, amrex::Vector< double > &bdy_times, double &start_bdy_time, double &final_bdy_time)
void read_from_erfbdy(int itime, const std::string &bdy_file_name, amrex::Vector< amrex::Vector< amrex::FArrayBox >> &bdy_data_xlo, amrex::Vector< amrex::Vector< amrex::FArrayBox >> &bdy_data_xhi, amrex::Vector< amrex::Vector< amrex::FArrayBox >> &bdy_data_ylo, amrex::Vector< amrex::Vector< amrex::FArrayBox >> &bdy_data_yhi, int nvars, int real_width)