Skip to content
Snippets Groups Projects
Select Git revision
  • bc28246bb2a44a3291ffb2440a6395fef07cd151
  • master default protected
  • github/fork/hrani/master
  • github/fork/dilawar/master
  • chamcham
  • chhennapoda
  • wheel
  • 3.2.0-pre0
  • v3.1.3
  • 3.1.2
  • 3.1.1
  • chamcham-3.1.1
  • 3.1.0
  • ghevar_3.0.2_pre2
  • ghevar_3.0.2
15 results

ZombieBufPool.cpp

Blame
  • user avatar
    Merge commit '6b27e69e' as 'moose-core'
    Dilawar Singh authored
    64e5323b
    History
    ZombieBufPool.cpp 2.03 KiB
    /**********************************************************************
    ** This program is part of 'MOOSE', the
    ** Messaging Object Oriented Simulation Environment.
    **           Copyright (C) 2003-2010 Upinder S. Bhalla. and NCBS
    ** It is made available under the terms of the
    ** GNU Lesser General Public License version 2.1
    ** See the file COPYING.LIB for the full notice.
    **********************************************************************/
    #include "header.h"
    #include "PoolBase.h"
    #include "VoxelPoolsBase.h"
    #include "../mesh/VoxelJunction.h"
    #include "XferInfo.h"
    #include "ZombiePoolInterface.h"
    #include "ZombiePool.h"
    #include "ZombieBufPool.h"
    #include "lookupVolumeFromMesh.h"
    
    // Entirely derived from ZombiePool. Only the zombification routines differ.
    const Cinfo* ZombieBufPool::initCinfo()
    {
    		//////////////////////////////////////////////////////////////
    		// Field Definitions: use virtual functions to deal with, the
    		// moose definitions are inherited.
    		//////////////////////////////////////////////////////////////
    	static Dinfo< ZombieBufPool > dinfo( true );
    	static Cinfo zombieBufPoolCinfo (
    		"ZombieBufPool",
    		ZombiePool::initCinfo(),
    		0,
    		0,
    		&dinfo
    	);
    
    	return &zombieBufPoolCinfo;
    }
    
    //////////////////////////////////////////////////////////////
    // Class definitions
    //////////////////////////////////////////////////////////////
    static const Cinfo* zombieBufPoolCinfo = ZombieBufPool::initCinfo();
    
    ZombieBufPool::ZombieBufPool()
    {;}
    
    ZombieBufPool::~ZombieBufPool()
    {;}
    
    //////////////////////////////////////////////////////////////
    // Field functions
    //////////////////////////////////////////////////////////////
    
    void ZombieBufPool::vSetN( const Eref& e, double v )
    {
    	ZombiePool::vSetN( e, v );
    	ZombiePool::vSetNinit( e, v );
    }
    
    void ZombieBufPool::vSetNinit( const Eref& e, double v )
    {
    	vSetN( e, v );
    }
    
    void ZombieBufPool::vSetConc( const Eref& e, double conc )
    {
    	double n = NA * conc * lookupVolumeFromMesh( e );
    	vSetN( e, n );
    }
    
    void ZombieBufPool::vSetConcInit( const Eref& e, double conc )
    {
    	vSetConc( e, conc );
    }