-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #177 from AMReX-FHD/cleanup_turb_fft
Retain only amrex::FFT for turbulence diagnostics
- Loading branch information
Showing
9 changed files
with
53 additions
and
2,026 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,52 @@ | ||
#ifndef _TurbSpectra_H_ | ||
#define _TurbSpectra_H_ | ||
|
||
#include <TurbSpectra_distributed.H> | ||
//#if defined(HEFFTE_FFTW) || defined(HEFFTE_CUFFT) || defined(HEFFTE_ROCFFT) // use heFFTe | ||
//#include <TurbSpectra_heffte.H> | ||
//#elif defined(USE_DISTRIBUTED_FFT) // use single grid FFT | ||
//#include <TurbSpectra_distributed.H> | ||
//#else // use single grid FFT | ||
//#include <TurbSpectra_single.H> | ||
//#endif | ||
#ifndef _TurbSpectraDistributed_H_ | ||
#define _TurbSpectraDistributed_H_ | ||
|
||
#include <AMReX.H> | ||
#include <AMReX_MultiFab.H> | ||
#include <AMReX_Vector.H> | ||
#include <AMReX_VisMF.H> | ||
|
||
#include <AMReX_GpuComplex.H> | ||
|
||
#include <string> | ||
|
||
#include "common_functions.H" | ||
|
||
#define ALIGN 16 | ||
|
||
using namespace amrex; | ||
|
||
|
||
void IntegrateKScalar(const MultiFab& cov_mag, | ||
const std::string& name, | ||
const int& step, | ||
const int& comp); | ||
//void IntegrateKScalarHeffte(const BaseFab<GpuComplex<Real> >& spectral_field, | ||
// const std::string& name, const Real& scaling, | ||
// const Box& c_local_box, | ||
// const Real& sqrtnpts, | ||
// const int& step); | ||
void IntegrateKVelocity(const MultiFab& cov_mag, | ||
const std::string& name, | ||
const int& step, | ||
const int& comp); | ||
//void IntegrateKVelocityHeffte(const BaseFab<GpuComplex<Real> >& spectral_fieldx, | ||
// const BaseFab<GpuComplex<Real> >& spectral_fieldy, | ||
// const BaseFab<GpuComplex<Real> >& spectral_fieldz, | ||
// const std::string& name, const Real& scaling, | ||
// const Box& c_local_box, | ||
// const int& step); | ||
void TurbSpectrumScalar(const MultiFab& variables, | ||
const amrex::Geometry& geom, | ||
const int& step, | ||
const amrex::Vector<amrex::Real>& var_scaling, | ||
const amrex::Vector< std::string >& var_names); | ||
void TurbSpectrumVelDecomp(const MultiFab& vel, | ||
MultiFab& vel_decomp, | ||
const amrex::Geometry& geom, | ||
const int& step, | ||
const amrex::Real& var_scaling, | ||
const amrex::Vector< std::string >& var_names); | ||
|
||
|
||
#endif |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.