From 86443b67e37d545adea575fa29191e3ae5cdb36c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Widera?= Date: Fri, 16 May 2014 14:56:16 +0200 Subject: [PATCH] delete unused wrong solver --- .../include/fields/NGPSolver/CurrentNGP.hpp | 76 ------------------- 1 file changed, 76 deletions(-) delete mode 100644 src/picongpu/include/fields/NGPSolver/CurrentNGP.hpp diff --git a/src/picongpu/include/fields/NGPSolver/CurrentNGP.hpp b/src/picongpu/include/fields/NGPSolver/CurrentNGP.hpp deleted file mode 100644 index 7432e61d12..0000000000 --- a/src/picongpu/include/fields/NGPSolver/CurrentNGP.hpp +++ /dev/null @@ -1,76 +0,0 @@ -/** - * Copyright 2013 Axel Huebl, Heiko Burau, 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 . - */ - - - -#ifndef CURRENTNGP_HPP -#define CURRENTNGP_HPP - -#include "types.h" -#include "dimensions/DataSpace.hpp" -#include "math/vector/compile-time/Int.hpp" - -namespace picongpu -{ - namespace currentSolverNgp - { - using namespace PMacc; - - struct NgpSolver - { - typedef math::CT::Int< 0, 0, 0 > OffsetOrigin; - typedef math::CT::Int< 1, 1, 1 > OffsetEnd; - - template - DINLINE void operator()(BoxJ& boxJ_par, /*box which is shifted to particles cell*/ - const PosType pos, - const VelType velocity, - const ChargeType charge, const float_X deltaTime) - { - typename BoxJ::ValueType j = velocity * charge * deltaTime; - j.x() *= (1.0 / (cellSize.y() * cellSize.z())); - j.y() *= (1.0 / (cellSize.x() * cellSize.z())); - j.z() *= (1.0 / (cellSize.x() * cellSize.y())); - - const DataSpace nearestCell( - __float2_Xint_rd(pos.x() + float_X(0.5)), - __float2_Xint_rd(pos.y() + float_X(0.5)), - __float2_Xint_rd(pos.z() + float_X(0.5)) - ); - - atomicAddWrapper( - &(boxJ_par(DataSpace < DIM3 > (0, nearestCell.y(), nearestCell.z())).x()), - j.x()); - atomicAddWrapper( - &(boxJ_par(DataSpace < DIM3 > (nearestCell.x(), 0, nearestCell.z())).y()), - j.y()); - atomicAddWrapper( - &(boxJ_par(DataSpace < DIM3 > (nearestCell.x(), nearestCell.y(), 0)).z()), - j.z()); - } - - - }; - - } -} - -#endif /* CURRENTNGP_HPP */ -