REMORA
Regional Modeling of Oceans Refined Adaptively
Loading...
Searching...
No Matches
REMORA_LatLonRegridMath.H File Reference
#include <AMReX_Algorithm.H>
#include <AMReX_GpuQualifiers.H>
#include <AMReX_REAL.H>
#include <algorithm>
#include <cmath>
#include <limits>
#include <vector>
Include dependency graph for REMORA_LatLonRegridMath.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  latlon_regrid::Stencil
 

Namespaces

namespace  latlon_regrid
 

Functions

AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE int latlon_regrid::bracket (const amrex::Real *a, int n, amrex::Real x)
 
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE bool latlon_regrid::is_valid (amrex::Real v)
 
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real latlon_regrid::wrap_longitude (amrex::Real lon, amrex::Real ref)
 
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE Stencil latlon_regrid::bilinear_stencil (const amrex::Real *lon, int nlon, const amrex::Real *lat, int nlat, bool periodic, bool flip_lon, bool flip_lat, amrex::Real lt, amrex::Real pt, amrex::Real tol)
 
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void latlon_regrid::rotate_to_grid (amrex::Real east, amrex::Real north, amrex::Real angle, amrex::Real &xi, amrex::Real &eta)
 
void latlon_regrid::unwrap_longitudes (std::vector< double > &lon)
 
double latlon_regrid::longitude_span (const std::vector< double > &lon_inc)
 
bool latlon_regrid::is_periodic (const std::vector< double > &lon_inc)
 
double latlon_regrid::longitude_reference (const std::vector< double > &lon_inc, bool periodic)
 

Detailed Description

The arithmetic of interpolating forcing from a rectilinear lat-lon grid onto REMORA's rho points and rotating vectors onto the grid axes (LatLonRegrid, REMORA::rotate_to_grid_axes), kept free of MultiFabs and NetCDF so that Tests/Unit can check it directly. Nothing here depends on REMORA_USE_NETCDF.

Definition in file REMORA_LatLonRegridMath.H.