/* Copyright 2019 David Grote * * This file is part of WarpX. * * License: BSD-3-Clause-LBNL */ #include "Utils/TextMsg.H" #include "Utils/WarpXConst.H" #include "SpectralKSpaceRZ.H" #include /* \brief Initialize k space object. * * \param realspace_ba Box array that corresponds to the decomposition * of the fields in real space (cell-centered ; includes guard cells) * \param dm Indicates which MPI proc owns which box, in realspace_ba. * \param realspace_dx Cell size of the grid in real space */ SpectralKSpaceRZ::SpectralKSpaceRZ (const amrex::BoxArray& realspace_ba, const amrex::DistributionMapping& dm, const amrex::RealVect realspace_dx) { dx = realspace_dx; // Store the cell size as member `dx` WARPX_ALWAYS_ASSERT_WITH_MESSAGE( realspace_ba.ixType() == amrex::IndexType::TheCellType(), "SpectralKSpaceRZ expects a cell-centered box."); // Create the box array that corresponds to spectral space amrex::BoxList spectral_bl; // Create empty box list // Loop over boxes and fill the box list for (int i=0; i < realspace_ba.size(); i++ ) { // For local FFTs, boxes in spectral space start at 0 in // each direction and have the same number of points as the // (cell-centered) real space box amrex::Box realspace_bx = realspace_ba[i]; amrex::IntVect fft_size = realspace_bx.length(); amrex::IntVect spectral_bx_size = fft_size; // Define the corresponding box amrex::Box spectral_bx = amrex::Box(amrex::IntVect::TheZeroVector(), spectral_bx_size - amrex::IntVect::TheUnitVector() ); spectral_bl.push_back(spectral_bx); } spectralspace_ba.define(spectral_bl); // Allocate the components of the kz vector const int i_dim = 1; const bool only_positive_k = false; k_vec[i_dim] = getKComponent(dm, realspace_ba, i_dim, only_positive_k); } hore/pnpm-10-and-catalogs'>chore/pnpm-10-and-catalogs Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/packages/integrations/markdoc/test/render.test.js (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2023-11-27Remove support for simple objects in endpoints (#9181)Gravatar Bjorn Lu 56-529/+206
2023-11-28Remove shiki lang path property support (#9196)Gravatar Bjorn Lu 7-427/+22
2023-11-28Remove deprecated features from Astro 3.0 (#9168)Gravatar Bjorn Lu 47-398/+95
2023-11-28Remove deprecated markdown-remark APIs (#9182)Gravatar Bjorn Lu 4-59/+7
2023-11-27[ci] release (#9180)astro@3.6.1Gravatar Houston (Bot) 32-65/+63
2023-11-24Remove vercel deprecated analytics option (#9184)Gravatar Bjorn Lu 3-30/+12
2023-11-24[ci] formatGravatar Guspan Tanadi 1-2/+1
2023-11-24style: highlight markdown Tip Note section CONTRIBUTING (#9123)Gravatar Guspan Tanadi 1-5/+7
2023-11-23fix scroll restoration issue on webKit browsers (#9186)Gravatar Martin Trapp 2-1/+7
2023-11-23fix(middleware): rename internal middleware id (#9173)Gravatar Arsh 2-1/+6
2023-11-23fix: Changelog formatting for 3.6.0 View Transition events (#9176)Gravatar Martin Trapp 1-3/+3
2023-11-22[ci] formatGravatar Eva Decker 1-3/+3
2023-11-22Fix View Transitions code block formatting (#9174)Gravatar Eva Decker 1-3/+3
2023-11-22Rename entryPoint to entrypoint (#9161)Gravatar Bjorn Lu 14-26/+38
2023-11-22Fix esbuild warning for local dev (#9160)Gravatar Bjorn Lu 1-1/+1
2023-11-22[ci] release (#9165)astro@3.6.0Gravatar Houston (Bot) 34-90/+83