MADNESS 0.10.1
madness::MacroTaskSinglesPotentialGs Class Reference

#include <CCStructures.h>

Inheritance diagram for madness::MacroTaskSinglesPotentialGs:
Collaboration diagram for madness::MacroTaskSinglesPotentialGs:

Public Types

typedef std::tuple< const std::vector< int > &, const CC_vecfunction &, const std::vector< CCPair > &, const int &, const Info & > argtupleT
using resultT = std::tuple<std::vector<real_function_3d>,std::vector<real_function_3d>>
 first vector is the potential, second is an intermediate (if applicable, e.g. for s2b and s2c potentials)

Public Member Functions

 MacroTaskSinglesPotentialGs ()
resultT allocator (World &world, const argtupleT &argtuple) const
 allocate the result and set the name of this task
resultT operator() (const std::vector< int > &result_index, const CC_vecfunction &singles_gs, const std::vector< CCPair > &doubles_gs, const int &name, const Info &info)
Public Member Functions inherited from madness::MacroTaskOperationBase
 MacroTaskOperationBase ()
 MacroTaskOperationBase (const std::string name)
virtual ~MacroTaskOperationBase ()
virtual bool accumulates_own_output () const
virtual void cleanup ()
 release whatever the task kept across its batches, called once the queue has run
virtual bool handles_own_data_movement () const
 true if the task moves its operand coefficients into the subworld itself
virtual long owner_hint (const Batch &, const long) const
 which subworld should run this batch; -1 leaves the choice to the queue

Public Attributes

std::string basename ="SinglesPotentialGs"
Public Attributes inherited from madness::MacroTaskOperationBase
Batch batch
Cloud * cloud_ptr =0
std::string name ="unknown_task"
std::shared_ptr< MacroTaskPartitioner > partitioner =0
World * subworld_ptr =0

Member Typedef Documentation

◆ argtupleT

typedef std::tuple< const std::vector<int>&, const CC_vecfunction&, const std::vector<CCPair>&, const int&, const Info& > madness::MacroTaskSinglesPotentialGs::argtupleT

◆ resultT

first vector is the potential, second is an intermediate (if applicable, e.g. for s2b and s2c potentials)

Constructor & Destructor Documentation

◆ MacroTaskSinglesPotentialGs()

madness::MacroTaskSinglesPotentialGs::MacroTaskSinglesPotentialGs ( )
inline

Member Function Documentation

◆ allocator()

resultT madness::MacroTaskSinglesPotentialGs::allocator ( World & world,
const argtupleT & argtuple ) const
inline

allocate the result and set the name of this task

References madness::assign_name(), basename, madness::MacroTaskOperationBase::name, and madness::zero_functions_auto_tree_state().

◆ operator()()

std::tuple< std::vector< real_function_3d >, std::vector< real_function_3d > > madness::MacroTaskSinglesPotentialGs::operator() ( const std::vector< int > & result_index,
const CC_vecfunction & singles_gs,
const std::vector< CCPair > & doubles_gs,
const int & name,
const Info & info )

Member Data Documentation

◆ basename

std::string madness::MacroTaskSinglesPotentialGs::basename ="SinglesPotentialGs"

Referenced by allocator().


The documentation for this class was generated from the following files: