Skip to content

Commit 32bfc5d

Browse files
committed
Merge pull request #2 from ax3l/radiationFilterNamings
merge changes from @ax3l
2 parents ac0a8fc + acaeb3c commit 32bfc5d

File tree

10 files changed

+40
-41
lines changed

10 files changed

+40
-41
lines changed

CHANGELOG.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@ This is the 5th release candidate, a *pre-beta* version.
1010
### Changes to "Open Beta RC4"
1111

1212
**.param file changes:**
13-
- Added selection of optional window functions in `radiationConfig.param` #286
13+
- Added selection of optional window functions in `radiationConfig.param`
14+
[#286](https://github.com/ComputationalRadiationPhysics/picongpu/pull/286/files#diff-1)
1415

1516
**New Features:**
16-
- Radiation includes now optional window functions to reduce ringing effects
17-
caused by sharp boundaries. #286
17+
- Radiation plugin: add optional window functions to reduce ringing effects
18+
caused by sharp boundaries #286
1819

1920
**Bug fixes:**
2021
- n/a

examples/Bunch/include/simulation_defines/param/radiationConfig.param

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ namespace picongpu
101101
namespace radFormFactor_incoherent { }
102102

103103

104-
namespace radFormFactor_selected = radFormFactor_CIC_3D;
104+
namespace radFormFactor = radFormFactor_CIC_3D;
105105

106106

107107
}//namespace picongpu
@@ -166,7 +166,7 @@ namespace picongpu
166166
namespace radWindowFunctionRectangle { }
167167
namespace radWindowFunctionTriangle { }
168168

169-
namespace radWindowFunction_selected = radWindowFunctionTriangle;
169+
namespace radWindowFunction = radWindowFunctionTriangle;
170170

171171

172172
}//namespace picongpu

examples/KelvinHelmholtz/include/simulation_defines/param/radiationConfig.param

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ namespace picongpu
104104
namespace radFormFactor_CIC_1Dy { }
105105
namespace radFormFactor_incoherent { }
106106

107-
namespace radFormFactor_selected = radFormFactor_CIC_3D;
107+
namespace radFormFactor = radFormFactor_CIC_3D;
108108

109109

110110
}//namespace picongpu
@@ -173,7 +173,7 @@ namespace picongpu
173173
namespace radWindowFunctionRectangle { }
174174
namespace radWindowFunctionTriangle { }
175175

176-
namespace radWindowFunction_selected = radWindowFunctionTriangle;
176+
namespace radWindowFunction = radWindowFunctionTriangle;
177177

178178

179179
}//namespace picongpu

examples/LaserWakefield/include/simulation_defines/param/radiationConfig.param

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ namespace picongpu
110110
namespace radFormFactor_CIC_1Dy { }
111111
namespace radFormFactor_incoherent { }
112112

113-
namespace radFormFactor_selected = radFormFactor_CIC_3D;
113+
namespace radFormFactor = radFormFactor_CIC_3D;
114114

115115

116116
}//namespace picongpu
@@ -174,7 +174,7 @@ namespace picongpu
174174
namespace radWindowFunctionRectangle { }
175175
namespace radWindowFunctionTriangle { }
176176

177-
namespace radWindowFunction_selected = radWindowFunctionTriangle;
177+
namespace radWindowFunction = radWindowFunctionTriangle;
178178

179179

180180
}//namespace picongpu

examples/SingleParticleCurrent/include/simulation_defines/param/radiationConfig.param

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ namespace picongpu
110110
namespace radFormFactor_CIC_1Dy { }
111111
namespace radFormFactor_incoherent { }
112112

113-
namespace radFormFactor_selected = radFormFactor_CIC_3D;
113+
namespace radFormFactor = radFormFactor_CIC_3D;
114114

115115

116116
}//namespace picongpu
@@ -174,7 +174,7 @@ namespace picongpu
174174
namespace radWindowFunctionRectangle { }
175175
namespace radWindowFunctionTriangle { }
176176

177-
namespace radWindowFunction_selected = radWindowFunctionTriangle;
177+
namespace radWindowFunction = radWindowFunctionTriangle;
178178

179179

180180
}//namespace picongpu

examples/SingleParticleRadiationWithLaser/include/simulation_defines/param/radiationConfig.param

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ namespace picongpu
101101
namespace radFormFactor_CIC_1Dy { }
102102
namespace radFormFactor_incoherent { }
103103

104-
namespace radFormFactor_selected = radFormFactor_CIC_3D;
104+
namespace radFormFactor = radFormFactor_CIC_3D;
105105

106106

107107
}//namespace picongpu
@@ -164,7 +164,7 @@ namespace picongpu
164164
namespace radWindowFunctionRectangle { }
165165
namespace radWindowFunctionTriangle { }
166166

167-
namespace radWindowFunction_selected = radWindowFunctionTriangle;
167+
namespace radWindowFunction = radWindowFunctionTriangle;
168168

169169

170170
}//namespace picongpu

examples/SingleParticleTest/include/simulation_defines/param/radiationConfig.param

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ namespace picongpu
104104
namespace radFormFactor_CIC_1Dy { }
105105
namespace radFormFactor_incoherent { }
106106

107-
namespace radFormFactor_selected = radFormFactor_CIC_3D;
107+
namespace radFormFactor = radFormFactor_CIC_3D;
108108

109109

110110
}//namespace picongpu
@@ -171,7 +171,7 @@ namespace picongpu
171171
namespace radWindowFunctionRectangle { }
172172
namespace radWindowFunctionTriangle { }
173173

174-
namespace radWindowFunction_selected = radWindowFunctionTriangle;
174+
namespace radWindowFunction = radWindowFunctionTriangle;
175175

176176

177177
}//namespace picongpu

src/picongpu/include/plugins/Radiation.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ void kernelRadiationParticles(ParBox pb,
348348
* of the window function filter without needing more memory */
349349
#if (PIC_RADWINDOWFUNCTION==1)
350350

351-
const radWindowFunction_selected::radWindowFunction winFkt;
351+
const radWindowFunction::radWindowFunction winFkt;
352352

353353
/* start with a factor of one */
354354
float_X windowFactor = 1.0;
@@ -403,7 +403,7 @@ void kernelRadiationParticles(ParBox pb,
403403
// if coherent and incoherent radiation of a single macro-particle
404404
// is considered, creare a form factor object
405405
#if (__COHERENTINCOHERENTWEIGHTING__==1)
406-
const radFormFactor_selected::radFormFactor myRadFormFactor;
406+
const radFormFactor::radFormFactor myRadFormFactor;
407407
#endif
408408

409409
/* Particle loop: thread runs through loaded particle data

src/picongpu/include/plugins/radiation/windowFunctions.hpp

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
/**
22
* Copyright 2014 Richard Pausch
33
*
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-
*/
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+
*/
2020

2121
#pragma once
2222

@@ -48,8 +48,8 @@ namespace picongpu
4848
return float_X(math::abs(position_x- L_x)<=float_X(0.5*L_x));
4949
}
5050
};
51-
} /* end namespace: radWindowFunctionRectangle */
52-
51+
} /* namespace radWindowFunctionRectangle */
52+
5353

5454

5555
namespace radWindowFunctionTriangle
@@ -76,10 +76,8 @@ namespace picongpu
7676
return float_X(math::abs(x)<=float_X(0.5*L_x))*(float_X(1.0)-float_X(2.0/L_x) * math::abs(x) );
7777
}
7878
};
79-
} /* end namespace: radWindowFunctionTriangle */
80-
81-
79+
} /* namespace radWindowFunctionTriangle */
8280

83-
} /* end namespace: picongpu */
8481

8582

83+
} /* namespace picongpu */

src/picongpu/include/simulation_defines/param/radiationConfig.param

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ namespace radFormFactor_CIC_3D { }
101101
namespace radFormFactor_CIC_1Dy { }
102102
namespace radFormFactor_incoherent { }
103103

104-
namespace radFormFactor_selected = radFormFactor_CIC_3D;
104+
namespace radFormFactor = radFormFactor_CIC_3D;
105105

106106

107107
}//namespace picongpu
@@ -163,7 +163,7 @@ namespace picongpu
163163
namespace radWindowFunctionRectangle { }
164164
namespace radWindowFunctionTriangle { }
165165

166-
namespace radWindowFunction_selected = radWindowFunctionTriangle;
166+
namespace radWindowFunction = radWindowFunctionTriangle;
167167

168168

169169
}//namespace picongpu

0 commit comments

Comments
 (0)