forked from ComputationalRadiationPhysics/picongpu
-
Notifications
You must be signed in to change notification settings - Fork 0
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 ComputationalRadiationPhysics#3323 from psychocode…
…rHPC/topic-reduceExampleComplexity reduce example complexity
- Loading branch information
Showing
31 changed files
with
1,379 additions
and
97 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
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
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Compile Test for Selected Species Solver | ||
======================================== | ||
|
||
This test compiles current solver for different partcle shapes. | ||
Particle pusher are checked in the example SingleParticleTest. |
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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# Copyright 2013-2020 Axel Huebl, Rene Widera | ||
# | ||
# This file is part of PIConGPU. | ||
# | ||
# PIConGPU is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# PIConGPU is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with PIConGPU. | ||
# If not, see <http://www.gnu.org/licenses/>. | ||
# | ||
|
||
# | ||
# generic compile options | ||
# | ||
|
||
################################################################################ | ||
# add presets here | ||
# - default: index 0 | ||
# - start with zero index | ||
# - increase by 1, no gaps | ||
|
||
flags[0]="-DPARAM_OVERWRITES:LIST='-DPARAM_CURRENTSOLVER=EmZ<UsedParticleShape>;-DPARAM_PARTICLESHAPE=PCS'" | ||
flags[1]="-DPARAM_OVERWRITES:LIST='-DPARAM_CURRENTSOLVER=EmZ<UsedParticleShape>;-DPARAM_PARTICLESHAPE=P4S;-DPARAM_DIMENSION=DIM2'" | ||
# Esirkepov and TSC is tested in most examples | ||
flags[2]="-DPARAM_OVERWRITES:LIST='-DPARAM_CURRENTSOLVER=Esirkepov<UsedParticleShape>;-DPARAM_PARTICLESHAPE=CIC'" | ||
flags[3]="-DPARAM_OVERWRITES:LIST='-DPARAM_CURRENTSOLVER=Esirkepov<UsedParticleShape>;-DPARAM_PARTICLESHAPE=PCS;-DPARAM_DIMENSION=DIM2'" | ||
flags[4]="-DPARAM_OVERWRITES:LIST='-DPARAM_CURRENTSOLVER=VillaBune<>;-DPARAM_PARTICLESHAPE=CIC'" | ||
|
||
|
||
################################################################################ | ||
# execution | ||
|
||
case "$1" in | ||
-l) echo ${#flags[@]} | ||
;; | ||
-ll) for f in "${flags[@]}"; do echo $f; done | ||
;; | ||
*) echo -n ${flags[$1]} | ||
;; | ||
esac |
46 changes: 46 additions & 0 deletions
46
share/picongpu/tests/compileCurrentSolver/include/picongpu/param/density.param
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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* Copyright 2013-2020 Axel Huebl, Heiko Burau, Rene Widera, Felix Schmitt, | ||
* Richard Pausch | ||
* | ||
* This file is part of PIConGPU. | ||
* | ||
* PIConGPU is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* PIConGPU is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with PIConGPU. | ||
* If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include "picongpu/particles/densityProfiles/profiles.def" | ||
|
||
|
||
namespace picongpu | ||
{ | ||
namespace SI | ||
{ | ||
/** Base density in particles per m^3 in the density profiles. | ||
* | ||
* This is often taken as reference maximum density in normalized profiles. | ||
* Individual particle species can define a `densityRatio` flag relative | ||
* to this value. | ||
* | ||
* unit: ELEMENTS/m^3 | ||
*/ | ||
constexpr float_64 BASE_DENSITY_SI = 1.e25; | ||
} | ||
|
||
namespace densityProfiles | ||
{ | ||
/* definition of homogenous profile */ | ||
using Homogenous = HomogenousImpl; | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
share/picongpu/tests/compileCurrentSolver/include/picongpu/param/dimension.param
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* Copyright 2014-2020 Axel Huebl, Rene Widera | ||
* | ||
* This file is part of PIConGPU. | ||
* | ||
* PIConGPU is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* PIConGPU is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with PIConGPU. | ||
* If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#pragma once | ||
|
||
#ifndef PARAM_DIMENSION | ||
#define PARAM_DIMENSION DIM3 | ||
#endif | ||
|
||
#define SIMDIM PARAM_DIMENSION | ||
|
||
namespace picongpu | ||
{ | ||
constexpr uint32_t simDim = SIMDIM; | ||
} // namespace picongpu |
57 changes: 57 additions & 0 deletions
57
share/picongpu/tests/compileCurrentSolver/include/picongpu/param/fileOutput.param
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 |
---|---|---|
@@ -0,0 +1,57 @@ | ||
/* Copyright 2013-2020 Axel Huebl, Rene Widera, Felix Schmitt, | ||
* Benjamin Worpitz, Richard Pausch | ||
* | ||
* This file is part of PIConGPU. | ||
* | ||
* PIConGPU is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* PIConGPU is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with PIConGPU. | ||
* If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include <pmacc/meta/conversion/MakeSeq.hpp> | ||
|
||
/* some forward declarations we need */ | ||
#include "picongpu/fields/Fields.def" | ||
#include "picongpu/particles/particleToGrid/ComputeGridValuePerFrame.def" | ||
|
||
#include <boost/mpl/vector.hpp> | ||
|
||
|
||
namespace picongpu | ||
{ | ||
|
||
/** FieldTmpSolvers groups all solvers that create data for FieldTmp ****** | ||
* | ||
* FieldTmpSolvers is used in @see FieldTmp to calculate the exchange size | ||
*/ | ||
using FieldTmpSolvers = MakeSeq_t<>; | ||
|
||
/** FileOutputFields: Groups all Fields that shall be dumped *************/ | ||
|
||
/** Possible native fields: FieldE, FieldB, FieldJ | ||
*/ | ||
using NativeFileOutputFields = MakeSeq_t<>; | ||
|
||
using FileOutputFields = MakeSeq_t<>; | ||
|
||
|
||
/** FileOutputParticles: Groups all Species that shall be dumped ********** | ||
* | ||
* hint: to disable particle output set to | ||
* using FileOutputParticles = MakeSeq_t< >; | ||
*/ | ||
using FileOutputParticles = MakeSeq_t<>; | ||
|
||
} |
Oops, something went wrong.