#include #include #include /* \brief Initialize the spectral Maxwell solver * * This function selects the spectral algorithm to be used, allocates the * corresponding coefficients for the discretized field update equation, * and prepares the structures that store the fields in spectral space. */ SpectralSolver::SpectralSolver( const amrex::BoxArray& realspace_ba, const amrex::DistributionMapping& dm, const int norder_x, const int norder_y, const int norder_z, const bool nodal, const amrex::RealVect dx, const amrex::Real dt ) { // Initialize all structures using the same distribution mapping dm // - Initialize k space object (Contains info about the size of // the spectral space corresponding to each box in `realspace_ba`, // as well as the value of the corresponding k coordinates) const SpectralKSpace k_space= SpectralKSpace(realspace_ba, dm, dx); // - Select the algorithm depending on the input parameters // Initialize the corresponding coefficients over k space // TODO: Add more algorithms + selection depending on input parameters // For the moment, this only uses the standard PsatdAlgorithm algorithm = std::unique_ptr( new PsatdAlgorithm( k_space, dm, norder_x, norder_y, norder_z, nodal, dt ) ); // - Initialize arrays for fields in spectral space + FFT plans field_data = SpectralFieldData( realspace_ba, k_space, dm ); }; -all-deps Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Expand)AuthorFilesLines
2021-08-31Checked the astro configs for the templates, (#1282)Gravatar Peter Singh 6-10/+34
2021-08-31Remove reference/link to Collections (#1277)Gravatar Tim Chesney 1-1/+1
2021-08-31Remove caveat about `Astro.request` not being passed to components. (#1276)Gravatar Caleb Jasik 1-2/+0
2021-08-31[ci] yarn formatGravatar FredKSchott 1-4/+4
2021-08-31Add v20 documentation for bundling assets (#1262)Gravatar Lachlan Young 1-0/+11
2021-08-30docs: translate astro vs other docs to zh comparing-astro-vs-other-tools.md (...Gravatar Xinyuan Wang 2-0/+209
2021-08-30create-astro: Format console logs and fix message about default renderers (#1...Gravatar Mikkel Tønder 2-7/+12
2021-08-30Alphabetize API doc (#1270)Gravatar Drew Powers 1-12/+12
2021-08-29Include lang="xxxx" in Prism component example (#1264)Gravatar Sarah Rainsberger 1-2/+4
2021-08-27Add danish translation of the getting started page (#1243)Gravatar Mikkel Tønder 4-1/+70
2021-08-27fix bad README removalGravatar Fred K. Schott 1-1/+23
2021-08-27Version Packages (#1252)astro@0.20.3Gravatar github-actions[bot] 22-25/+26
2021-08-27Fix knownEntrypoint warning for Fix __astro_hoisted_scripts.js (#1251)Gravatar Matthew Phillips 2-0/+6
2021-08-27Fixes #1249 (#1250)Gravatar Patrick Gotthardt 4-4/+4
2021-08-27Version Packages (#1246)create-astro@0.6.1astro@0.20.2@astrojs/parser@0.20.2Gravatar github-actions[bot] 30-49/+68
2021-08-27[ci] yarn formatGravatar matthewp 1-1/+4