Skip to content

Commit af1f207

Browse files
committed
Introduce new Param File: dimension.param
Removes the dependency from componentsConfig.param - useful for other param files - preparation for PIConGPU 2D
1 parent 9a0449d commit af1f207

10 files changed

Lines changed: 29 additions & 32 deletions

File tree

examples/Bunch/include/simulation_defines/param/componentsConfig.param

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@
2222
#pragma once
2323

2424

25-
#define SIMDIM DIM3
26-
27-
const uint32_t simDim = SIMDIM;
28-
2925
namespace picongpu
3026
{
3127
/*! Simulation Starter ---------------------------------------------------

examples/KelvinHelmholtz/include/simulation_defines/param/componentsConfig.param

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@
2222
#pragma once
2323

2424

25-
#define SIMDIM DIM3
26-
27-
const uint32_t simDim = SIMDIM;
28-
2925
namespace picongpu
3026
{
3127
/*! Simulation Starter ---------------------------------------------------

examples/LaserWakefield/include/simulation_defines/param/componentsConfig.param

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@
2222
#pragma once
2323

2424

25-
#define SIMDIM DIM3
26-
27-
const uint32_t simDim = SIMDIM;
28-
2925
namespace picongpu
3026
{
3127
/*! Simulation Starter ---------------------------------------------------

examples/SingleParticleCurrent/include/simulation_defines/param/componentsConfig.param

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@
2222

2323
#pragma once
2424

25-
#define SIMDIM DIM3
26-
27-
const uint32_t simDim = SIMDIM;
28-
2925
namespace picongpu
3026
{
3127
/** Simulation Starter ---------------------------------------------------

examples/SingleParticleRadiationWithLaser/include/simulation_defines/param/componentsConfig.param

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@
2222

2323
#pragma once
2424

25-
#define SIMDIM DIM3
26-
27-
const uint32_t simDim = SIMDIM;
28-
2925
namespace picongpu
3026
{
3127
/** Simulation Starter ---------------------------------------------------

examples/SingleParticleTest/include/simulation_defines/param/componentsConfig.param

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@
2222

2323
#pragma once
2424

25-
#define SIMDIM DIM3
26-
27-
const uint32_t simDim = SIMDIM;
28-
2925
namespace picongpu
3026
{
3127
/** Simulation Starter ---------------------------------------------------

examples/ThermalTest/include/simulation_defines/param/componentsConfig.param

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@
2222

2323
#pragma once
2424

25-
#define SIMDIM DIM3
26-
27-
const uint32_t simDim = SIMDIM;
28-
2925
namespace picongpu
3026
{
3127
/*! Simulation Starter ---------------------------------------------------

examples/WeibelTransverse/include/simulation_defines/param/componentsConfig.param

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@
2222
#pragma once
2323

2424

25-
#define SIMDIM DIM3
26-
27-
const uint32_t simDim = SIMDIM;
28-
2925
namespace picongpu
3026
{
3127
/*! Simulation Starter ---------------------------------------------------

src/picongpu/include/simulation_defines/_defaultParam.loader

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
*/
2626
#pragma once
2727

28+
#include "simulation_defines/param/dimension.param"
2829
#include "simulation_defines/param/precision.param"
2930
#include "simulation_defines/param/physicalConstants.param"
3031
#include "simulation_defines/param/particleDefinition.param"
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/**
2+
* Copyright 2014 Axel Huebl
3+
*
4+
* This file is part of PIConGPU.
5+
*
6+
* PIConGPU is free software: you can redistribute it and/or modify
7+
* it under the terms of the GNU General Public License as published by
8+
* the Free Software Foundation, either version 3 of the License, or
9+
* (at your option) any later version.
10+
*
11+
* PIConGPU is distributed in the hope that it will be useful,
12+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
* GNU General Public License for more details.
15+
*
16+
* You should have received a copy of the GNU General Public License
17+
* along with PIConGPU.
18+
* If not, see <http://www.gnu.org/licenses/>.
19+
*/
20+
21+
#pragma once
22+
23+
#define SIMDIM DIM3
24+
25+
namespace picongpu
26+
{
27+
const uint32_t simDim = SIMDIM;
28+
} // namespace picongpu

0 commit comments

Comments
 (0)