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 // Returns bdy_time_interval.
12 double
13 read_times_from_erfbdy(const std::string& bdy_file_name,
14  int& ntimes,
15  int& nvars,
16  int& real_width,
17  amrex::Vector<double>& bdy_times,
18  double& start_bdy_time,
19  double& final_bdy_time);
20 
21 // Read a single time index from erfbdy file.
22 void
23 read_from_erfbdy(int itime,
24  const std::string& bdy_file_name,
25  amrex::Vector<amrex::Vector<amrex::FArrayBox>>& bdy_data_xlo,
26  amrex::Vector<amrex::Vector<amrex::FArrayBox>>& bdy_data_xhi,
27  amrex::Vector<amrex::Vector<amrex::FArrayBox>>& bdy_data_ylo,
28  amrex::Vector<amrex::Vector<amrex::FArrayBox>>& bdy_data_yhi,
29  int nvars, int real_width);
30 
31 #endif
@ nvars
Definition: ERF_DataStruct.H:152
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)
double read_times_from_erfbdy(const std::string &bdy_file_name, int &ntimes, int &nvars, int &real_width, amrex::Vector< double > &bdy_times, double &start_bdy_time, double &final_bdy_time)