LCOV - code coverage report
Current view: top level - coupling - NoBoundaryForce.h (source / functions) Coverage Total Hit
Test: coverage.info Lines: 50.0 % 4 2
Test Date: 2026-08-21 15:14:06 Functions: 0.0 % 2 0

            Line data    Source code
       1              : // Copyright (C) 2015 Technische Universitaet Muenchen
       2              : // This file is part of the Mamico project. For conditions of distribution
       3              : // and use, please see the copyright notice in Mamico's main folder, or at
       4              : // www5.in.tum.de/mamico
       5              : #ifndef _MOLECULARDYNAMICS_COUPLING_NOBOUNDARYFORCE_H_
       6              : #define _MOLECULARDYNAMICS_COUPLING_NOBOUNDARYFORCE_H_
       7              : 
       8              : #include "coupling/BoundaryForceController.h"
       9              : 
      10              : namespace coupling {
      11              : template <class LinkedCell, unsigned int dim> class NoBoundaryForce;
      12              : }
      13              : 
      14              : /** @brief dummy implementation, applying no boundary force.
      15              :  *  @author Philipp Neumann
      16              :  *  @tparam LinkedCell the LinkedCell class is given by the implementation of
      17              :  * linked cells in the molecular dynamics simulation
      18              :  *  @tparam dim  refers to the spacial dimension of the simulation, can be 1, 2,
      19              :  * or 3
      20              :  */
      21              : template <class LinkedCell, unsigned int dim> class coupling::NoBoundaryForce : public coupling::BoundaryForceController<LinkedCell, dim> {
      22              : public:
      23              :   /** @brief a simple constructor
      24              :    *  @param mdSolverInterface interface to the md solver*/
      25            4 :   NoBoundaryForce(coupling::interface::MDSolverInterface<LinkedCell, dim>* mdSolverInterface)
      26            4 :       : coupling::BoundaryForceController<LinkedCell, dim>(mdSolverInterface) {}
      27              :   /** @brief a simple destructor*/
      28            0 :   virtual ~NoBoundaryForce() {}
      29              : 
      30              :   /** @brief dummy function, doesn't do anything
      31              :    *  @param cell the coupling cell to apply no force
      32              :    * coupling cell*/
      33            0 :   virtual void applyBoundaryForce(coupling::datastructures::CouplingCellWithLinkedCells<LinkedCell, dim>& cell) {}
      34              : };
      35              : #endif // _MOLECULARDYNAMICS_COUPLING_NOBOUNDARYFORCE_H_
        

Generated by: LCOV version 2.0-1