From 7a1b6e45a547fcf945ee3c8f0f456a7dc9f86134 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Widera?= Date: Fri, 7 Feb 2014 11:04:40 +0100 Subject: [PATCH] add type floatD_X - new type to define a float position inside a cell - number of components depends on simDim --- .../unitless/precision.unitless | 23 +++++++++++-------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/src/picongpu/include/simulation_defines/unitless/precision.unitless b/src/picongpu/include/simulation_defines/unitless/precision.unitless index 929f9c681f..9f1232c5bc 100644 --- a/src/picongpu/include/simulation_defines/unitless/precision.unitless +++ b/src/picongpu/include/simulation_defines/unitless/precision.unitless @@ -31,35 +31,40 @@ namespace picongpu { typedef precisionType float_X; /*32 Bit defines*/ - typedef ::PMacc::math::Vector float1_X; - typedef ::PMacc::math::Vector float2_X; - typedef ::PMacc::math::Vector float3_X; + typedef ::PMacc::math::Vector float1_X; + typedef ::PMacc::math::Vector float2_X; + typedef ::PMacc::math::Vector float3_X; + typedef ::PMacc::math::Vector floatD_X; } namespace precision64Bit { typedef precisionType float_X; /*32 Bit defines*/ - typedef ::PMacc::math::Vector float1_X; - typedef ::PMacc::math::Vector float2_X; - typedef ::PMacc::math::Vector float3_X; + typedef ::PMacc::math::Vector float1_X; + typedef ::PMacc::math::Vector float2_X; + typedef ::PMacc::math::Vector float3_X; + typedef ::PMacc::math::Vector floatD_X; } typedef precision32Bit::float_X float_32; typedef precision64Bit::float_X float_64; /*variable precision defines*/ - typedef ::PMacc::math::Vector float1_X; - typedef ::PMacc::math::Vector float2_X; - typedef ::PMacc::math::Vector float3_X; + typedef ::PMacc::math::Vector float1_X; + typedef ::PMacc::math::Vector float2_X; + typedef ::PMacc::math::Vector float3_X; + typedef ::PMacc::math::Vector floatD_X; /*32 Bit defines*/ typedef precision32Bit::float1_X float1_32; typedef precision32Bit::float2_X float2_32; typedef precision32Bit::float3_X float3_32; + typedef precision32Bit::floatD_X floatD_32; /*64 Bit defines*/ typedef precision64Bit::float1_X float1_64; typedef precision64Bit::float2_X float2_64; typedef precision64Bit::float3_X float3_64; + typedef precision64Bit::floatD_X floatD_64; typedef precisionSqrt::precisionType sqrt_X; typedef precisionExp::precisionType exp_X;