MADNESS 0.10.1
madness::FunctionDefaults< NDIM > Class Template Reference

FunctionDefaults holds default paramaters as static class members. More...

#include <funcdefaults.h>

Collaboration diagram for madness::FunctionDefaults< NDIM >:

Static Public Member Functions

static void clear_cell ()
 clear user cell – will be reset once a function is loaded from file
static bool get_apply_randomize ()
 Gets the random load balancing for integral operators flag.
static bool get_autorefine ()
 Gets the default adaptive autorefinement flag.
static const BoundaryConditions< NDIM > & get_bc ()
 Returns the default boundary conditions.
static const Tensor< double > & get_cell ()
 Gets the user cell for the simulation.
static double get_cell_geometric_mean_width ()
 Returns the geometric mean width of the user cell, volume^(1/NDIM).
static double get_cell_min_width ()
 Returns the minimum width of any user cell dimension.
static double get_cell_volume ()
 Returns the volume of the user cell.
static const Tensor< double > & get_cell_width ()
 Returns the width of each user cell dimension.
static bool get_debug ()
 Gets the default debug flag, which gates verbose MRA diagnostics.
static int get_initial_level ()
 Returns the default initial projection level.
static int get_k ()
 Returns the default wavelet order.
static int get_max_refine_level ()
 Gets the default maximum adaptive refinement level.
static std::shared_ptr< WorldDCPmapInterface< Key< NDIM > > > & get_pmap ()
 Returns the default process map that was last initialized via set_default_pmap().
static std::shared_ptr< WorldDCPmapInterface< Key< NDIM > > > get_pmap (World &world)
 Returns the default process map that can be used with the given world.
static int get_pmap_nproc ()
 Returns number of the default processes returned by get_pmap().
static bool get_project_randomize ()
 Gets the random load balancing for projection flag.
static const Tensor< double > & get_rcell_width ()
 Returns the reciprocal of the width of each user cell dimension.
static bool get_refine ()
 Gets the default adaptive refinement flag.
static int get_special_level ()
 Returns the default projection level for special boxes.
static TensorType get_tensor_type ()
 Returns the default tensor type.
static const double & get_thresh ()
 Returns the default threshold.
static int get_truncate_mode ()
 Gets the default truncation mode.
static bool get_truncate_on_project ()
 Gets the default truncate on project flag.
static std::shared_ptr< WorldDCPmapInterface< Key< NDIM > > > make_default_pmap (World &world)
 Makes a default process map for the given world.
static void print ()
static void redistribute (World &world, const std::shared_ptr< WorldDCPmapInterface< Key< NDIM > > > &newpmap)
 Sets the default process map and redistributes all functions using the old map.
static void set_apply_randomize (bool value)
 Sets the random load balancing for integral operators flag.
static void set_autorefine (bool value)
 Sets the default adaptive autorefinement flag.
static void set_bc (const BoundaryConditions< NDIM > &value)
 Sets the default boundary conditions.
static void set_cell (const Tensor< double > &value)
 Sets the user cell for the simulation.
static void set_cubic_cell (double lo, double hi)
 Sets the user cell to be cubic with each dimension having range [lo,hi].
static void set_debug (bool value)
 Sets the default debug flag; see get_debug.
static void set_default_pmap (World &world)
static void set_defaults (World &world)
static void set_initial_level (int value)
 Sets the default initial projection level.
static void set_k (int value)
 Sets the default wavelet order.
static int set_length_scale (const double lo, const size_t k=get_k())
 adapt the special level to resolve the smallest length scale
static void set_max_refine_level (int value)
 Sets the default maximum adaptive refinement level.
static void set_pmap (const std::shared_ptr< WorldDCPmapInterface< Key< NDIM > > > &value)
 Sets the default process map (does not redistribute existing functions).
static void set_project_randomize (bool value)
 Sets the random load balancing for projection flag.
static void set_refine (bool value)
 Sets the default adaptive refinement flag.
static void set_special_level (int value)
 Existing functions are unaffected.
static void set_tensor_type (const TensorType &t)
 Sets the default tensor type.
static void set_thresh (double value)
 Sets the default threshold.
static void set_truncate_mode (int value)
 Sets the default truncation mode.
static void set_truncate_on_project (bool value)
 Sets the default truncate on project flag.

Static Private Member Functions

static Tensor< double > make_default_cell ()
static Tensor< double > make_default_cell_width ()
static void recompute_cell_info ()

Static Private Attributes

static bool apply_randomize
 If true use randomization for load balancing in apply integral operator.
static bool autorefine
 Whether to autorefine in multiplication, etc.
static std::optional< BoundaryConditions< NDIM > > bc
 Default boundary conditions, not initialized by default and must be set explicitly before use.
static Tensor< double > cell
 cell[NDIM][2] Simulation cell, cell(0,0)=xlo, cell(0,1)=xhi, ...
static double cell_geometric_mean_width
 volume^(1/NDIM), the mean dimension
static double cell_min_width
 Size of smallest dimension.
static double cell_volume
 Volume of simulation cell.
static Tensor< double > cell_width
 Width of simulation cell in each dimension.
static bool debug
 Controls output of debug info.
static int initial_level
 Initial level for fine scale projection.
static int k
 Wavelet order.
static int max_refine_level
 Level at which to stop refinement.
static std::shared_ptr< WorldDCPmapInterface< Key< NDIM > > > pmap
 Default mapping of keys to processes.
static int pmap_nproc
 Number of processes assumed by pmap, -1 indicates uninitialized pmap.
static bool project_randomize
 If true use randomization for load balancing in project/refine.
static Tensor< double > rcell_width
 Reciprocal of width.
static bool refine
 Whether to refine new functions.
static int special_level
 Minimum level for fine scale projection of special boxes.
static double thresh
 Truncation threshold.
static int truncate_mode
 Truncation method.
static bool truncate_on_project
 If true initial projection inserts at n-1 not n.
static TensorType tt
 structure of the tensor in FunctionNode

Detailed Description

template<std::size_t NDIM>
class madness::FunctionDefaults< NDIM >

FunctionDefaults holds default paramaters as static class members.

Declared and initialized in mra.cc and/or funcimpl::initialize.

Currently all functions of the same dimension share the same cell dimensions since they are stored inside FunctionDefaults ... if you change the cell dimensions all functions of that dimension are affected.

N.B. Ultimately, we may need to make these defaults specific to each world, as should be all global state.

Member Function Documentation

◆ clear_cell()

template<std::size_t NDIM>
void madness::FunctionDefaults< NDIM >::clear_cell ( )
inlinestatic

clear user cell – will be reset once a function is loaded from file

Existing functions are probably rendered useless

Referenced by test_sum_down_files().

◆ get_apply_randomize()

template<std::size_t NDIM>
bool madness::FunctionDefaults< NDIM >::get_apply_randomize ( )
inlinestatic

Gets the random load balancing for integral operators flag.

Referenced by madness::FunctionImpl< T, LDIM >::apply(), madness::FunctionImpl< T, LDIM >::apply_source_driven(), and main().

◆ get_autorefine()

template<std::size_t NDIM>
bool madness::FunctionDefaults< NDIM >::get_autorefine ( )
inlinestatic

Gets the default adaptive autorefinement flag.

◆ get_bc()

template<std::size_t NDIM>
const BoundaryConditions< NDIM > & madness::FunctionDefaults< NDIM >::get_bc ( )
inlinestatic

Returns the default boundary conditions.

Referenced by madness::BSHFunctionInterface::BSHFunctionInterface(), madness::Derivative< double, 1 >::Derivative(), madness::Displacements< NDIM >::Displacements(), madness::ElectronRepulsionInterface< T, NDIM >::ElectronRepulsionInterface(), madness::GeneralTwoElectronInterface< T, NDIM >::GeneralTwoElectronInterface(), MolecularNuclearPotentialFunctor2::MolecularNuclearPotentialFunctor2(), madness::SeparatedConvolution< double, 3 >::SeparatedConvolution(), madness::SeparatedConvolution< double, 3 >::SeparatedConvolution(), madness::SlaterF12Interface::SlaterF12Interface(), madness::SlaterFunctionInterface::SlaterFunctionInterface(), madness::TwoElectronInterface< T, NDIM >::TwoElectronInterface(), madness::Specialbox_op< T, NDIM >::box_is_at_boundary(), madness::Function< double, 3 >::broaden(), madness::BSHOperator(), madness::BSHOperator3D(), madness::BSHOperatorPtr(), madness::BSHOperatorPtr3D(), madness::Specialbox_op< T, NDIM >::check_special_points(), madness::CoulombOperator(), madness::CoulombOperatorPtr(), madness::F2GOperator(), madness::F2GOperatorPtr(), madness::FGOperator(), madness::FGOperatorPtr(), madness::GaussOperator(), madness::GaussOperatorPtr(), madness::GradBSHOperator(), GradBSHOperator_Joel(), madness::GradCoulombOperator(), madness::gradient_operator(), madness::GradSlaterOperator(), laplacian(), main(), madness::SeparatedConvolution< double, 3 >::make_coeff_for_operator(), madness::ElectronCuspyBox_op< T, NDIM >::operator()(), madness::LRFunctorF12< T, NDIM, LDIM >::MacroTaskLRFInner::operator()(), madness::PeriodicBSHOperator3D(), madness::PeriodicBSHOperatorPtr3D(), madness::PeriodicHFExchangeOperator(), madness::PeriodicHFExchangeOperatorPtr(), print(), madness::FunctionImpl< T, NDIM >::project_refine_op(), madness::SlaterF12Operator(), madness::SlaterF12OperatorPtr(), madness::SlaterF12OperatorPtr_ND(), madness::SlaterF12sqOperator(), madness::SlaterF12sqOperatorPtr(), madness::SlaterOperator(), madness::SlaterOperatorPtr(), madness::SlaterOperatorPtr_ND(), madness::SmoothingOperator(), madness::SmoothingOperator3D(), and test_scale_preserves_broaden_marker().

◆ get_cell()

template<std::size_t NDIM>
const Tensor< double > & madness::FunctionDefaults< NDIM >::get_cell ( )
inlinestatic

◆ get_cell_geometric_mean_width()

template<std::size_t NDIM>
double madness::FunctionDefaults< NDIM >::get_cell_geometric_mean_width ( )
inlinestatic

Returns the geometric mean width of the user cell, volume^(1/NDIM).

Referenced by madness::FunctionImpl< T, NDIM >::truncate_tol().

◆ get_cell_min_width()

◆ get_cell_volume()

◆ get_cell_width()

template<std::size_t NDIM>
const Tensor< double > & madness::FunctionDefaults< NDIM >::get_cell_width ( )
inlinestatic

Returns the width of each user cell dimension.

Referenced by madness::DFTCoulombPeriodicOp< T, NDIM >::DFTCoulombPeriodicOp(), madness::DFTNuclearChargeDensityOp< T, NDIM >::DFTNuclearChargeDensityOp(), MolecularNuclearPotentialFunctor2::MolecularNuclearPotentialFunctor2(), madness::TwoElectronInterface< T, NDIM >::TwoElectronInterface(), madness::nemo_u1_functors::append(), madness::XCOperator< T, NDIM >::apply_tau_term(), madness::BSHOperatorPtr3D(), madness::DiagnosticMatrix< T, NDIM >::build_Gab_bra(), madness::DFT< T, NDIM >::calculate_tot_coulomb_energy(), madness::DFT< T, NDIM >::calculate_tot_pe_sp(), madness::SeparatedConvolution< double, 3 >::check_cubic(), madness::SeparatedConvolution< double, 3 >::displacement_real_distsq(), madness::FunctionImpl< T, LDIM >::do_apply(), madness::Derivative< double, 1 >::do_diff2b(), madness::FunctionImpl< T, NDIM >::do_print_grid(), madness::fcube(), madness::GradBSHOperator(), GradBSHOperator_Joel(), madness::GradCoulombOperator(), gradPbarA(), madness::GradSlaterOperator(), madness::Solver< T, NDIM >::initial_guess(), madness::TwoElectronInterface< T, NDIM >::initialize(), FunctionIOData< T, NDIM >::initialize_func_coeffs(), madness::SeparatedConvolution< double, 3 >::initialize_images_only(), madness::trajectory< NDIM >::line_xyz(), main(), main(), madness::SeparatedConvolution< double, 3 >::make_coeff_for_operator(), make_grad_operator(), madness::plot_plane(), madness::plot_plane(), madness::plot_plane(), madness::FunctionImpl< T, NDIM >::print_plane_local(), printfunc(), MolecularEntity::read_file(), madness::FunctionImpl< T, LDIM >::read_grid(), madness::FunctionImpl< T, LDIM >::read_grid2(), madness::FunctionDefaults< 1 >::set_length_scale(), madness::FunctionFunctorInterface< double, 3 >::set_length_scale(), madness::sim_to_user(), madness::EigSolver< T, NDIM >::solve(), solve(), test_he_potential(), test_modified(), test_opdir(), test_qm(), test_recursive_application(), testgradG(), testNavierStokes(), and testPeriodicCoulomb3d().

◆ get_debug()

template<std::size_t NDIM>
bool madness::FunctionDefaults< NDIM >::get_debug ( )
inlinestatic

Gets the default debug flag, which gates verbose MRA diagnostics.

Referenced by madness::FunctionImpl< Q, NDIM >::get_k().

◆ get_initial_level()

template<std::size_t NDIM>
int madness::FunctionDefaults< NDIM >::get_initial_level ( )
inlinestatic

Returns the default initial projection level.

◆ get_k()

template<std::size_t NDIM>
int madness::FunctionDefaults< NDIM >::get_k ( )
inlinestatic

Returns the default wavelet order.

Referenced by madness::BSHFunctionInterface::BSHFunctionInterface(), madness::Derivative< double, 1 >::Derivative(), DF::DF(), madness::DFTCoulombOp< T, NDIM >::DFTCoulombOp(), madness::DFTCoulombPeriodicOp< T, NDIM >::DFTCoulombPeriodicOp(), madness::DFTNuclearChargeDensityOp< T, NDIM >::DFTNuclearChargeDensityOp(), madness::ElectronRepulsionInterface< T, NDIM >::ElectronRepulsionInterface(), madness::GeneralTwoElectronInterface< T, NDIM >::GeneralTwoElectronInterface(), NuclearChargeDensityOp< T, NDIM >::NuclearChargeDensityOp(), madness::SeparatedConvolution< double, 3 >::SeparatedConvolution(), madness::SeparatedConvolution< double, 3 >::SeparatedConvolution(), madness::SeparatedConvolution< double, 3 >::SeparatedConvolution(), madness::SeparatedConvolution< double, 3 >::SeparatedConvolution(), madness::SlaterF12Interface::SlaterF12Interface(), madness::SlaterFunctionInterface::SlaterFunctionInterface(), madness::TwoElectronFactory< T, NDIM >::TwoElectronFactory(), madness::TwoElectronInterface< T, NDIM >::TwoElectronInterface(), madness::BSHOperator(), madness::BSHOperator3D(), madness::BSHOperatorPtr(), madness::BSHOperatorPtr3D(), madness::HartreeFock< T, NDIM >::calculate_coulomb_energy(), madness::HartreeFock< T, NDIM >::calculate_exchange_energy(), madness::DFT< T, NDIM >::calculate_tot_coulomb_energy(), madness::DFT< T, NDIM >::calculate_tot_pe_sp(), madness::CoulombOperator(), madness::CoulombOperatorPtr(), madness::smooth< T, NDIM >::cut_oscillations(), MiniDFT::doit(), madness::F2GOperator(), madness::F2GOperatorPtr(), madness::FGOperator(), madness::FGOperatorPtr(), madness::Exchange< T, NDIM >::ExchangeImpl< T, NDIM >::MacroTaskExchangeSimple::finalize_chunk_entries(), madness::free_space_derivative(), madness::GaussOperator(), madness::GaussOperatorPtr(), madness::GradBSHOperator(), GradBSHOperator_Joel(), madness::GradCoulombOperator(), madness::gradient_operator(), gradPbarA(), madness::GradSlaterOperator(), madness::CC2::initialize(), iterate(), madness::smooth< T, NDIM >::linearize(), Calculation::load_mos(), madness::SCF::load_mos(), madness::Solver< T, NDIM >::load_orbitals(), main(), main(), madness::EigSolver< T, NDIM >::make_bsh_operators(), make_grad_operator(), madness::smooth< T, NDIM >::make_inv_mask(), madness::smooth< T, NDIM >::make_mask(), madness::NemoBase::need_recompute_factors_and_potentials(), madness::HartreeFockExchangeOp< T, NDIM >::op_o(), madness::HartreeFockCoulombOp< T, NDIM >::op_r(), madness::density_mask_operator::operator()(), madness::Exchange< T, NDIM >::ExchangeImpl< T, NDIM >::MacroTaskExchangeSimple::operator()(), madness::LRFunctorF12< T, NDIM, LDIM >::MacroTaskLRFInner::operator()(), madness::MolecularEnergy::output_calc_info_schema(), madness::SCF::output_calc_info_schema(), madness::SCF::output_scf_info_schema(), madness::periodic_derivative(), madness::PeriodicBSHOperator3D(), madness::PeriodicBSHOperatorPtr3D(), madness::PeriodicHFExchangeOperator(), madness::PeriodicHFExchangeOperatorPtr(), madness::project(), madness::SCF::project(), madness::Znemo::read_real_guess(), madness::Solver< T, NDIM >::reproject(), madness::NemoBase::reproject_mos(), madness::population::PopulationAnalysis::run(), run_full_closed_shell(), run_full_open_shell(), run_static_closed_shell(), run_static_open_shell(), madness::CCParameters::sanity_check(), madness::SCF::save_mos(), madness::MolecularOrbitals< T, NDIM >::save_restartdata(), madness::Derivative< double, 1 >::set_ble1(), madness::Derivative< double, 1 >::set_ble2(), madness::Derivative< double, 1 >::set_bspline1(), madness::Derivative< double, 1 >::set_bspline2(), madness::Derivative< double, 1 >::set_bspline3(), madness::Exchange< double, 3 >::set_macro_task_info(), Calculation::set_protocol(), madness::Nemo::set_protocol(), madness::SCF::set_protocol(), madness::apply_kernel_helper::slater_apply(), madness::SlaterF12Operator(), madness::SlaterF12OperatorPtr(), madness::SlaterF12OperatorPtr_ND(), madness::SlaterF12sqOperator(), madness::SlaterF12sqOperatorPtr(), madness::SlaterOperator(), madness::SlaterOperatorPtr(), madness::SlaterOperatorPtr_ND(), madness::SmoothingOperator(), madness::SmoothingOperator3D(), madness::EigSolver< T, NDIM >::solve(), madness::Nemo::solve(), madness::SCF::solve(), solve(), test_adaptive_tree(), test_consolidate_vs_direct(), test_conversion(), test_hf_be(), test_hf_he(), test_lowrank_function(), test_opdir(), test_sum_down(), test_sum_down_files(), and test_tt2d_summation().

◆ get_max_refine_level()

template<std::size_t NDIM>
int madness::FunctionDefaults< NDIM >::get_max_refine_level ( )
inlinestatic

Gets the default maximum adaptive refinement level.

Referenced by madness::FunctionImpl< T, LDIM >::partial_inner().

◆ get_pmap() [1/2]

◆ get_pmap() [2/2]

template<std::size_t NDIM>
std::shared_ptr< WorldDCPmapInterface< Key< NDIM > > > madness::FunctionDefaults< NDIM >::get_pmap ( World & world)
inlinestatic

Returns the default process map that can be used with the given world.

◆ get_pmap_nproc()

template<std::size_t NDIM>
int madness::FunctionDefaults< NDIM >::get_pmap_nproc ( )
inlinestatic

Returns number of the default processes returned by get_pmap().

Referenced by madness::FunctionDefaults< 1 >::get_pmap().

◆ get_project_randomize()

template<std::size_t NDIM>
bool madness::FunctionDefaults< NDIM >::get_project_randomize ( )
inlinestatic

Gets the random load balancing for projection flag.

Referenced by madness::FunctionImpl< T, NDIM >::project_refine_op().

◆ get_rcell_width()

template<std::size_t NDIM>
const Tensor< double > & madness::FunctionDefaults< NDIM >::get_rcell_width ( )
inlinestatic

Returns the reciprocal of the width of each user cell dimension.

Referenced by madness::Derivative< double, 1 >::do_diff2b(), madness::Derivative< double, 1 >::do_diff2i(), and madness::user_to_sim().

◆ get_refine()

◆ get_special_level()

template<std::size_t NDIM>
int madness::FunctionDefaults< NDIM >::get_special_level ( )
inlinestatic

Returns the default projection level for special boxes.

Referenced by madness::Specialbox_op< T, NDIM >::get_half_of_special_level().

◆ get_tensor_type()

◆ get_thresh()

template<std::size_t NDIM>
const double & madness::FunctionDefaults< NDIM >::get_thresh ( )
inlinestatic

Returns the default threshold.

Referenced by madness::Complex_CIS_Parameters::Complex_CIS_Parameters(), madness::Coulomb< T, NDIM >::Coulomb(), madness::Coulomb< T, NDIM >::Coulomb(), madness::Coulomb< T, NDIM >::Coulomb(), madness::harmonic_potential_boxed::harmonic_potential_boxed(), madness::Localizer::Localizer(), madness::R_times_arg_div_R::R_times_arg_div_R(), madness::TwoElectronFactory< T, NDIM >::TwoElectronFactory(), madness::MP2::add_local_coupling(), madness::Znemo::analyze(), KPeriodicBSHOperator::apply(), madness::apply(), apply_bsh(), madness::SCF::apply_bsh(), madness::SCF::apply_bsh_macrotask(), madness::SCF::apply_bsh_plain(), madness::SCF::apply_bsh_tiled(), madness::Solver< T, NDIM >::apply_hf_exchange(), madness::Solver< T, NDIM >::apply_hf_exchange4(), madness::CCPotentials::apply_KffK(), madness::ExchangeCommutator::apply_KffK_lowrank_split_alpha(), madness::ExchangeCommutator::apply_KffK_lowrank_three_range(), apply_periodic_bsh(), madness::GTHPseudopotential< Q >::apply_potential(), madness::SCF::apply_potential(), MiniDFT::apply_potential(), madness::GTHPseudopotential< Q >::apply_potential_simple(), madness::XCOperator< T, NDIM >::apply_tau_term(), madness::CCPotentials::apply_transformed_Ue(), madness::CCPotentials::apply_Ue(), madness::DiagnosticMatrix< T, NDIM >::build_Gab_bra(), madness::SCF::canonicalize_virtuals(), madness::TwoElectronInterface< T, NDIM >::coeff(), madness::MolecularOrbitals< T, NDIM >::compute_center(), madness::CC2::compute_local_coupling(), madness::Localizer::compute_localization_matrix(), madness::ExchangeCommutator::compute_lrf_exchange_operator(), compute_update(), madness::NemoBase::construct_nuclear_correlation_factor(), madness::CCPairFunction< T, NDIM >::convert_to_pure_no_op_inplace(), madness::SCF::diag_fock_matrix(), dnuclear_anchor_test(), madness::Solver< T, NDIM >::do_rhs_simple(), MiniDFT::doit(), GygiPot::ESP(), madness::estimate_area(), madness::ExchangeAlgorithm< T, NDIM >::Exchange(), madness::ExchangeCommutator::fk_provider(), madness::smooth< T, NDIM >::get_density_thresh(), madness::Znemo::get_initial_orbitals(), madness::BasisFunctions::guess_contracted_virtuals_from_file(), madness::MP2::guess_mp1_3(), GygiPot::GuessPotential(), madness::hartree_product(), madness::hartree_product(), madness::NuclearCorrelationFactor::initialize(), madness::TDHF::initialize(), madness::OEP::iterate(), madness::Znemo::iterate(), madness::CC2::iterate_lrcc2_pairs(), madness::ExchangeCommutator::kf_provider(), madness::CCPairBuilder::load_function(), madness::CCPotentials::load_function(), Calculation::load_mos(), madness::SCF::load_mos(), madness::Solver< T, NDIM >::load_orbitals(), madness::CCPair::load_pair(), madness::ElectronPair::load_pair(), main(), main(), madness::EigSolver< T, NDIM >::make_bsh_operators(), madness::SCF::make_bsh_operators(), madness::Solver< T, NDIM >::make_bsh_operators(), MiniDFT::make_bsh_operators(), madness::CCPotentials::make_constant_part_macrotask(), MiniDFT::make_coulomb_potential(), DF::make_fermi_potential(), madness::TDHF::make_guess_from_initial_diagonalization(), madness::MP2::make_KffKphi0(), madness::PotentialManager::make_nuclear_potential(), madness::Solver< T, NDIM >::make_nuclear_potential(), make_ri_basis(), madness::Nemo::make_sigma(), madness::MP2::make_Uphi0(), Calculation::make_Upsi(), madness::mask_munging(), madness::MP2::multiply_with_0th_order_Hamiltonian(), madness::munge(), madness::NemoBase::normalize(), nuclear_anchor_test(), madness::CCPairFunction< T, NDIM >::op_pure_to_pure(), madness::BSHApply< T, NDIM >::operator()(), madness::Coulomb< T, NDIM >::MacroTaskCoulomb::operator()(), madness::DNuclear< T, NDIM >::operator()(), madness::Exchange< T, NDIM >::ExchangeImpl< T, NDIM >::MacroTaskExchangeSimple::operator()(), madness::FunctionImpl< T, NDIM >::recursive_apply_op_vec< opT, LDIM >::operator()(), madness::StrongOrthogonalityProjector< T, NDIM >::operator()(), madness::XCOperator< T, NDIM >::operator()(), madness::XCOperator< T, NDIM >::operator()(), madness::LowRankFunction< T, NDIM, LDIM >::orthonormalize(), madness::NemoBase::orthonormalize(), madness::PNO::orthonormalize_cholesky(), madness::MolecularEnergy::output_calc_info_schema(), madness::SCF::output_scf_info_schema(), madness::FunctionImpl< T, LDIM >::partial_inner(), SurfaceMoleculeInteraction::perturbed_molecular_pot(), madness::FunctionImpl< Q, NDIM >::project(), madness::LowRankFunctionFactory< T, NDIM, LDIM >::project(), madness::project(), madness::SCF::project(), madness::LowRankFunctionFactory< T, NDIM, LDIM >::project_from_operator(), madness::LowRankFunctionFactory< T, NDIM, LDIM >::project_from_Y_stable(), madness::LowRankFunctionFactory< T, NDIM, LDIM >::project_stable(), madness::CCPairFunction< T, NDIM >::remove_linearly_dependent_terms(), madness::Solver< T, NDIM >::reproject(), madness::NemoBase::reproject_mos(), madness::Znemo::rotate_subspace(), madness::population::PopulationAnalysis::run(), run_full_closed_shell(), run_full_open_shell(), run_static_closed_shell(), run_static_open_shell(), madness::CCParameters::sanity_check(), madness::Nemo_complex_Parameters::set_derived_values(), madness::Exchange< T, NDIM >::ExchangeImpl< T, NDIM >::set_poisson(), Calculation::set_protocol(), madness::Nemo::set_protocol(), madness::SCF::set_protocol(), madness::smooth< T, NDIM >::smooth_density_from_orbitals(), madness::EigSolver< T, NDIM >::solve(), madness::Nemo::solve(), madness::SCF::solve(), solve(), madness::CC2::solve_cc2(), madness::CC2::solve_mp2_coupled(), madness::SCF::solve_virtuals(), test_adaptive_diagnosis(), test_adaptive_tree(), test_add(), test_arithmetic(), test_combined_operators(), test_consolidate(), test_consolidate_vs_direct(), test_construction(), test_converged_function(), test_coulomb(), test_cross(), test_ctor_orthonormalization(), test_diagnose_GQKffK(), test_diagnose_GQUe(), test_diagnose_GUe(), test_diagnose_Ue(), test_direct_projection(), test_dnuclear(), test_ethylene(), madness::test_exchange(), test_exchange(), test_fock(), test_gconv(), test_generic_exchange(), test_GQUe(), test_GUe(), madness::Diamagnetic_potential_factor::test_harmonic_potential(), test_inner(), test_inner(), test_kinetic(), test_load_store(), test_lowrank_function(), madness::Diamagnetic_potential_factor::test_lz_commutator(), test_meta_gga(), test_meta_gga_one_orbital_energy(), test_multi_to_multi_op(), test_multiply(), test_multiply_with_f12(), test_nemo(), test_norm(), test_nuclear(), test_nuclear_potential(), test_nuclear_potential_big_unit_cell(), test_operator_apply(), test_partial_inner_3d(), test_partial_inner_6d(), test_proj(), test_project_ab(), test_projector(), test_projector(), test_projector_outer(), test_Q12_projector(), test_recursive_apply(), test_remove_lindep(), test_scalar_multiplication(), madness::Diamagnetic_potential_factor::test_scalar_potentials(), test_slater_exchange(), test_sum_down(), test_sum_down_files(), test_swap_particles(), test_transformations(), test_tt2d_summation(), madness::Znemo::test_U_potentials(), madness::Diamagnetic_potential_factor::test_vector_potentials(), test_Vphi_ij_u(), test_weighted_bra_exchange(), test_XCOperator(), test_XCOperator_matrix(), testbsh(), madness::PNO::transform_pairs(), madness::SCF::twoint(), madness::ElementaryInterface< T, NDIM >::values(), and madness::XCOperator< T, NDIM >::weak_xc_terms().

◆ get_truncate_mode()

template<std::size_t NDIM>
int madness::FunctionDefaults< NDIM >::get_truncate_mode ( )
inlinestatic

Gets the default truncation mode.

Referenced by energy(), main(), main(), and madness::CCParameters::sanity_check().

◆ get_truncate_on_project()

template<std::size_t NDIM>
bool madness::FunctionDefaults< NDIM >::get_truncate_on_project ( )
inlinestatic

Gets the default truncate on project flag.

Referenced by energy().

◆ make_default_cell()

template<std::size_t NDIM>
Tensor< double > madness::FunctionDefaults< NDIM >::make_default_cell ( )
inlinestaticprivate

Referenced by set_defaults().

◆ make_default_cell_width()

template<std::size_t NDIM>
Tensor< double > madness::FunctionDefaults< NDIM >::make_default_cell_width ( )
inlinestaticprivate

◆ make_default_pmap()

template<std::size_t NDIM>
std::shared_ptr< WorldDCPmapInterface< Key< NDIM > > > madness::FunctionDefaults< NDIM >::make_default_pmap ( World & world)
static

◆ print()

◆ recompute_cell_info()

template<std::size_t NDIM>
void madness::FunctionDefaults< NDIM >::recompute_cell_info ( )
inlinestaticprivate

◆ redistribute()

template<std::size_t NDIM>
void madness::FunctionDefaults< NDIM >::redistribute ( World & world,
const std::shared_ptr< WorldDCPmapInterface< Key< NDIM > > > & newpmap )
inlinestatic

◆ set_apply_randomize()

template<std::size_t NDIM>
void madness::FunctionDefaults< NDIM >::set_apply_randomize ( bool value)
inlinestatic

Sets the random load balancing for integral operators flag.

Referenced by doit(), main(), Calculation::set_protocol(), madness::SCF::set_protocol(), test2(), and test_coulomb().

◆ set_autorefine()

template<std::size_t NDIM>
void madness::FunctionDefaults< NDIM >::set_autorefine ( bool value)
inlinestatic

Sets the default adaptive autorefinement flag.

Existing functions are unaffected

Referenced by doit(), main(), moments(), Calculation::set_protocol(), madness::SCF::set_protocol(), test2(), test_bsh(), test_hf_be(), test_hf_he(), test_math(), test_opdir(), test_proj(), test_unaryop(), and testgradG().

◆ set_bc()

◆ set_cell()

template<std::size_t NDIM>
void madness::FunctionDefaults< NDIM >::set_cell ( const Tensor< double > & value)
inlinestatic

Sets the user cell for the simulation.

Existing functions are probably rendered useless.

Warning
Must be called in a quiescent window: no operator application (FunctionImpl::apply, including unfenced ones) may be in flight, since the standard displacements used by operators are reordered in place when the cell changes (see Displacements::set_width).

Referenced by FunctionIOData< T, NDIM >::create_function(), doit(), Plotter::doplot1(), madness::Function< double, 3 >::load(), main(), FunctionIO< double, D >::read_function(), read_function(), test_add(), test_basic(), test_cross(), test_dot(), test_inner(), test_matrix_mul_sparse(), test_multi_to_multi_op(), test_opdir(), test_orthonormalize_canonical(), test_orthonormalize_symmetric(), test_redistribute_to_batches(), test_rot(), test_transform(), and testgradG().

◆ set_cubic_cell()

template<std::size_t NDIM>
void madness::FunctionDefaults< NDIM >::set_cubic_cell ( double lo,
double hi )
inlinestatic

◆ set_debug()

template<std::size_t NDIM>
void madness::FunctionDefaults< NDIM >::set_debug ( bool value)
inlinestatic

Sets the default debug flag; see get_debug.

Referenced by madness::SCF::SCF().

◆ set_default_pmap()

template<std::size_t NDIM>
void madness::FunctionDefaults< NDIM >::set_default_pmap ( World & world)
static

◆ set_defaults()

template<std::size_t NDIM>
void madness::FunctionDefaults< NDIM >::set_defaults ( World & world)
static

Used to set defaults to k=7, thresh=1-5, for a unit cube [0,1].

Warning
does not reset the boundary conditions if they are already set

References apply_randomize, autorefine, bc, madness::BC_FREE, cell, debug, e(), initial_level, k, make_default_cell(), max_refine_level, project_randomize, recompute_cell_info(), refine, set_default_pmap(), set_defaults(), special_level, thresh, truncate_mode, truncate_on_project, tt, and madness::TT_FULL.

Referenced by initialize(), main(), set_defaults(), and madness::startup().

◆ set_initial_level()

◆ set_k()

template<std::size_t NDIM>
void madness::FunctionDefaults< NDIM >::set_k ( int value)
inlinestatic

Sets the default wavelet order.

Existing functions are unaffacted.

Referenced by DF::DF(), MiniDFT::MiniDFT(), madness::Znemo::Znemo(), bench_cell(), doit(), MiniDFT::doit(), dostuff(), golden_check_ndim(), madness::Solver< T, NDIM >::init(), initialize(), madness::CC2::initialize(), load_function(), madness::main(), main(), main(), madness::InitParameters::read(), madness::InitParameters::readnw(), madness::Solver< T, NDIM >::reproject(), run(), run_batched_cell(), run_correctness_cell(), run_one(), run_real_mo(), run_tests(), Calculation::set_protocol(), madness::SCF::set_protocol(), test(), test(), test2(), test2(), madness::smooth< T, NDIM >::test_1d(), test_add(), test_apply_push_1d(), test_basic(), test_bsh(), test_chin_chen(), test_combined_operators(), test_consolidate_vs_direct(), test_coulomb(), test_cross(), test_diff(), test_dot(), test_gaussian_num_coeffs(), test_he(), test_he_potential(), test_hf_be(), test_hf_h2(), test_hf_he(), test_hydro(), test_inner(), test_io(), test_math(), test_matrix_mul_sparse(), test_multi_to_multi_op(), test_nuclear_energy(), test_nuclear_potential(), test_nuclear_potential2(), test_nuclear_potential3(), test_nuclear_potential_big_unit_cell(), test_op(), test_opdir(), test_orthonormalize_canonical(), test_orthonormalize_symmetric(), test_output_param_overload(), test_per(), test_periodic(), test_periodic1(), test_periodic2(), test_periodic_bsh(), test_plot(), test_proj(), test_qm(), test_redistribute_to_batches(), test_rot(), test_sum_down(), test_transform(), test_trotter(), test_tt2d_summation(), test_unaryop(), test_xc2(), test_XCOperator_matrix(), testgradG(), testNavierStokes(), and testPeriodicCoulomb3d().

◆ set_length_scale()

template<std::size_t NDIM>
int madness::FunctionDefaults< NDIM >::set_length_scale ( const double lo,
const size_t k = get_k() )
inlinestatic

adapt the special level to resolve the smallest length scale

Referenced by madness::CC2::initialize(), and madness::BasisFunctions::SolidHarmonicGaussian::special_level().

◆ set_max_refine_level()

template<std::size_t NDIM>
void madness::FunctionDefaults< NDIM >::set_max_refine_level ( int value)
inlinestatic

Sets the default maximum adaptive refinement level.

Existing functions are unaffected

Referenced by main().

◆ set_pmap()

template<std::size_t NDIM>
void madness::FunctionDefaults< NDIM >::set_pmap ( const std::shared_ptr< WorldDCPmapInterface< Key< NDIM > > > & value)
inlinestatic

Sets the default process map (does not redistribute existing functions).

Existing functions are probably rendered useless

Referenced by doit(), loadbal(), main(), madness::SCF::make_fock_matrix(), madness::MacroTaskQ::run_all(), madness::Exchange< T, NDIM >::ExchangeImpl< T, NDIM >::MacroTaskExchangeSimple::store_batches(), test2(), and trotter().

◆ set_project_randomize()

template<std::size_t NDIM>
void madness::FunctionDefaults< NDIM >::set_project_randomize ( bool value)
inlinestatic

Sets the random load balancing for projection flag.

Referenced by main(), Calculation::set_protocol(), madness::SCF::set_protocol(), and test2().

◆ set_refine()

◆ set_special_level()

template<std::size_t NDIM>
void madness::FunctionDefaults< NDIM >::set_special_level ( int value)
inlinestatic

Existing functions are unaffected.

Referenced by madness::CC2::initialize().

◆ set_tensor_type()

◆ set_thresh()

template<std::size_t NDIM>
void madness::FunctionDefaults< NDIM >::set_thresh ( double value)
inlinestatic

Sets the default threshold.

Existing functions are unaffected

Referenced by DF::DF(), MiniDFT::MiniDFT(), madness::LowRankFunctionFactory< T, NDIM, LDIM >::ThreshGuard::ThreshGuard(), madness::Znemo::Znemo(), madness::LowRankFunctionFactory< T, NDIM, LDIM >::ThreshGuard::~ThreshGuard(), bench_cell(), doit(), MiniDFT::doit(), dostuff(), golden_check_ndim(), madness::MP2::guess_mp1_3(), madness::Solver< T, NDIM >::init(), initialize(), madness::CC2::initialize(), load_function(), main(), main(), madness::CCPotentials::make_constant_part_macrotask(), madness::Nemo::make_sigma(), madness::StrongOrthogonalityProjector< T, NDIM >::operator()(), madness::Solver< T, NDIM >::reproject(), run(), run_batched_cell(), run_correctness_cell(), run_one(), run_real_mo(), run_tests(), Calculation::set_protocol(), madness::SCF::set_protocol(), madness::CC2::solve(), test(), test(), test2(), test2(), madness::smooth< T, NDIM >::test_1d(), test_adaptive_diagnosis(), test_add(), test_apply_push_1d(), test_basic(), test_bsh(), test_chin_chen(), test_combined_operators(), test_consolidate_vs_direct(), test_construction(), test_coulomb(), test_cross(), test_diff(), test_direct_projection(), test_dnuclear(), test_dot(), madness::test_exchange(), test_exchange(), test_fock(), test_gaussian_num_coeffs(), test_he(), test_he_potential(), test_hf_be(), test_hf_h2(), test_hf_he(), test_hydro(), test_inner(), test_io(), test_math(), test_matrix_mul_sparse(), test_meta_gga_one_orbital_energy(), test_multi_to_multi_op(), test_nemo(), test_nuclear(), test_nuclear_energy(), test_nuclear_potential(), test_nuclear_potential2(), test_nuclear_potential3(), test_nuclear_potential_big_unit_cell(), test_op(), test_opdir(), test_orthonormalize_canonical(), test_orthonormalize_symmetric(), test_output_param_overload(), test_partial_inner(), test_per(), test_periodic(), test_periodic1(), test_periodic2(), test_periodic_bsh(), test_plot(), test_proj(), test_qm(), test_redistribute_to_batches(), test_remove_lindep(), test_rot(), test_sum_down(), test_tight_diffuse(), test_transform(), test_trotter(), test_tt2d_summation(), test_unaryop(), test_Vphi_ij_u(), test_xc2(), test_XCOperator(), test_XCOperator_matrix(), testgradG(), testNavierStokes(), and testPeriodicCoulomb3d().

◆ set_truncate_mode()

◆ set_truncate_on_project()

template<std::size_t NDIM>
void madness::FunctionDefaults< NDIM >::set_truncate_on_project ( bool value)
inlinestatic

Sets the default truncate on project flag.

Existing functions are unaffected

Referenced by doit(), main(), test(), test2(), test_bsh(), test_opdir(), test_per(), test_proj(), and testgradG().

Member Data Documentation

◆ apply_randomize

template<std::size_t NDIM>
bool madness::FunctionDefaults< NDIM >::apply_randomize
staticprivate

If true use randomization for load balancing in apply integral operator.

Referenced by print(), and set_defaults().

◆ autorefine

template<std::size_t NDIM>
bool madness::FunctionDefaults< NDIM >::autorefine
staticprivate

Whether to autorefine in multiplication, etc.

Referenced by print(), and set_defaults().

◆ bc

template<std::size_t NDIM>
std::optional<BoundaryConditions<NDIM> > madness::FunctionDefaults< NDIM >::bc
staticprivate

Default boundary conditions, not initialized by default and must be set explicitly before use.

Referenced by set_defaults().

◆ cell

◆ cell_geometric_mean_width

template<std::size_t NDIM>
double madness::FunctionDefaults< NDIM >::cell_geometric_mean_width
staticprivate

volume^(1/NDIM), the mean dimension

◆ cell_min_width

template<std::size_t NDIM>
double madness::FunctionDefaults< NDIM >::cell_min_width
staticprivate

Size of smallest dimension.

◆ cell_volume

template<std::size_t NDIM>
double madness::FunctionDefaults< NDIM >::cell_volume
staticprivate

Volume of simulation cell.

◆ cell_width

template<std::size_t NDIM>
Tensor<double> madness::FunctionDefaults< NDIM >::cell_width
staticprivate

Width of simulation cell in each dimension.

◆ debug

template<std::size_t NDIM>
bool madness::FunctionDefaults< NDIM >::debug
staticprivate

Controls output of debug info.

Referenced by print(), and set_defaults().

◆ initial_level

template<std::size_t NDIM>
int madness::FunctionDefaults< NDIM >::initial_level
staticprivate

Initial level for fine scale projection.

Referenced by print(), and set_defaults().

◆ k

template<std::size_t NDIM>
int madness::FunctionDefaults< NDIM >::k
staticprivate

Wavelet order.

Referenced by print(), and set_defaults().

◆ max_refine_level

template<std::size_t NDIM>
int madness::FunctionDefaults< NDIM >::max_refine_level
staticprivate

Level at which to stop refinement.

Referenced by print(), and set_defaults().

◆ pmap

template<std::size_t NDIM>
std::shared_ptr< WorldDCPmapInterface< Key<NDIM> > > madness::FunctionDefaults< NDIM >::pmap
staticprivate

Default mapping of keys to processes.

Referenced by set_default_pmap().

◆ pmap_nproc

template<std::size_t NDIM>
int madness::FunctionDefaults< NDIM >::pmap_nproc
staticprivate

Number of processes assumed by pmap, -1 indicates uninitialized pmap.

Referenced by set_default_pmap().

◆ project_randomize

template<std::size_t NDIM>
bool madness::FunctionDefaults< NDIM >::project_randomize
staticprivate

If true use randomization for load balancing in project/refine.

Referenced by print(), and set_defaults().

◆ rcell_width

template<std::size_t NDIM>
Tensor<double> madness::FunctionDefaults< NDIM >::rcell_width
staticprivate

Reciprocal of width.

Referenced by madness::FunctionDefaults< 1 >::recompute_cell_info().

◆ refine

template<std::size_t NDIM>
bool madness::FunctionDefaults< NDIM >::refine
staticprivate

Whether to refine new functions.

Referenced by print(), and set_defaults().

◆ special_level

template<std::size_t NDIM>
int madness::FunctionDefaults< NDIM >::special_level
staticprivate

Minimum level for fine scale projection of special boxes.

Referenced by print(), and set_defaults().

◆ thresh

template<std::size_t NDIM>
double madness::FunctionDefaults< NDIM >::thresh
staticprivate

Truncation threshold.

Referenced by print(), and set_defaults().

◆ truncate_mode

template<std::size_t NDIM>
int madness::FunctionDefaults< NDIM >::truncate_mode
staticprivate

Truncation method.

Referenced by print(), and set_defaults().

◆ truncate_on_project

template<std::size_t NDIM>
bool madness::FunctionDefaults< NDIM >::truncate_on_project
staticprivate

If true initial projection inserts at n-1 not n.

Referenced by print(), and set_defaults().

◆ tt

template<std::size_t NDIM>
TensorType madness::FunctionDefaults< NDIM >::tt
staticprivate

structure of the tensor in FunctionNode

Referenced by print(), and set_defaults().


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