2019-03-07 16:29:06 +01:00
|
|
|
.. _module_mpi:
|
|
|
|
|
|
|
|
.. program:: mpi
|
|
|
|
|
|
|
|
.. default-role:: option
|
|
|
|
|
|
|
|
===
|
|
|
|
mpi
|
|
|
|
===
|
|
|
|
|
|
|
|
Contains all the functions and providers for parallelization with |MPI|.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Providers
|
|
|
|
---------
|
|
|
|
|
|
|
|
.. c:var:: mpi_initialized
|
|
|
|
|
|
|
|
|
|
|
|
File : :file:`mpi/mpi.irp.f`
|
|
|
|
|
|
|
|
.. code:: fortran
|
|
|
|
|
|
|
|
logical :: mpi_initialized
|
|
|
|
|
|
|
|
|
|
|
|
Always true. Initialized MPI
|
|
|
|
|
|
|
|
Needed by:
|
|
|
|
|
|
|
|
.. hlist::
|
|
|
|
:columns: 3
|
|
|
|
|
|
|
|
* :c:data:`ezfio_filename`
|
|
|
|
|
|
|
|
|
|
|
|
.. c:var:: mpi_master
|
|
|
|
|
|
|
|
|
|
|
|
File : :file:`mpi/mpi.irp.f`
|
|
|
|
|
|
|
|
.. code:: fortran
|
|
|
|
|
|
|
|
logical :: mpi_master
|
|
|
|
|
|
|
|
|
|
|
|
If true, rank is zero
|
|
|
|
|
|
|
|
Needs:
|
|
|
|
|
|
|
|
.. hlist::
|
|
|
|
:columns: 3
|
|
|
|
|
|
|
|
* :c:data:`mpi_rank`
|
|
|
|
|
|
|
|
Needed by:
|
|
|
|
|
|
|
|
.. hlist::
|
|
|
|
:columns: 3
|
|
|
|
|
2024-12-04 15:58:59 +01:00
|
|
|
* :c:data:`absolute_eig`
|
|
|
|
* :c:data:`act_mos_opt`
|
|
|
|
* :c:data:`adaptive_pt2_max`
|
2019-03-07 16:29:06 +01:00
|
|
|
* :c:data:`ao_cartesian`
|
2024-12-04 15:58:59 +01:00
|
|
|
* :c:data:`ao_cholesky_threshold`
|
2019-03-07 16:29:06 +01:00
|
|
|
* :c:data:`ao_coef`
|
|
|
|
* :c:data:`ao_expo`
|
2024-12-04 15:58:59 +01:00
|
|
|
* :c:data:`ao_expo_im`
|
|
|
|
* :c:data:`ao_expo_phase`
|
|
|
|
* :c:data:`ao_expo_pw`
|
2019-03-07 16:29:06 +01:00
|
|
|
* :c:data:`ao_integrals_threshold`
|
|
|
|
* :c:data:`ao_md5`
|
2024-12-04 15:58:59 +01:00
|
|
|
* :c:data:`ao_normalized`
|
2019-03-07 16:29:06 +01:00
|
|
|
* :c:data:`ao_nucl`
|
|
|
|
* :c:data:`ao_num`
|
2024-12-04 15:58:59 +01:00
|
|
|
* :c:data:`ao_one_e_integrals_threshold`
|
|
|
|
* :c:data:`ao_ortho_canonical_coef`
|
2019-03-07 16:29:06 +01:00
|
|
|
* :c:data:`ao_power`
|
|
|
|
* :c:data:`ao_prim_num`
|
|
|
|
* :c:data:`ao_two_e_integrals_in_map`
|
2024-12-04 15:58:59 +01:00
|
|
|
* :c:data:`avoid_saddle`
|
|
|
|
* :c:data:`basis`
|
|
|
|
* :c:data:`basis_nucleus_index`
|
|
|
|
* :c:data:`calc_dipole_moment`
|
|
|
|
* :c:data:`calc_energy_components`
|
|
|
|
* :c:data:`calc_osc_str`
|
|
|
|
* :c:data:`calc_tr_dipole_moment`
|
2019-03-07 16:29:06 +01:00
|
|
|
* :c:data:`ci_energy`
|
|
|
|
* :c:data:`correlation_energy_ratio_max`
|
2024-12-04 15:58:59 +01:00
|
|
|
* :c:data:`correlation_functional`
|
|
|
|
* :c:data:`criterion_casscf`
|
|
|
|
* :c:data:`csf_based`
|
|
|
|
* :c:data:`damping_for_rs_dft`
|
2019-03-07 16:29:06 +01:00
|
|
|
* :c:data:`data_energy_proj`
|
|
|
|
* :c:data:`data_energy_var`
|
2019-05-28 10:23:50 +02:00
|
|
|
* :c:data:`data_one_e_dm_alpha_ao`
|
2019-03-07 16:29:06 +01:00
|
|
|
* :c:data:`data_one_e_dm_alpha_mo`
|
2019-05-28 10:23:50 +02:00
|
|
|
* :c:data:`data_one_e_dm_beta_ao`
|
2019-03-07 16:29:06 +01:00
|
|
|
* :c:data:`data_one_e_dm_beta_mo`
|
|
|
|
* :c:data:`davidson_sze_max`
|
2024-12-04 15:58:59 +01:00
|
|
|
* :c:data:`density_for_dft`
|
|
|
|
* :c:data:`diag_hess_cas`
|
2019-03-07 16:29:06 +01:00
|
|
|
* :c:data:`disk_based_davidson`
|
|
|
|
* :c:data:`distributed_davidson`
|
2024-12-04 15:58:59 +01:00
|
|
|
* :c:data:`do_ao_cholesky`
|
|
|
|
* :c:data:`do_mom`
|
|
|
|
* :c:data:`do_ormas`
|
2019-03-07 16:29:06 +01:00
|
|
|
* :c:data:`do_pseudo`
|
|
|
|
* :c:data:`do_pt2`
|
|
|
|
* :c:data:`elec_alpha_num`
|
|
|
|
* :c:data:`elec_beta_num`
|
|
|
|
* :c:data:`element_name`
|
2024-12-04 15:58:59 +01:00
|
|
|
* :c:data:`exchange_functional`
|
|
|
|
* :c:data:`excitation_alpha_max`
|
|
|
|
* :c:data:`excitation_beta_max`
|
|
|
|
* :c:data:`excitation_max`
|
|
|
|
* :c:data:`excitation_ref`
|
|
|
|
* :c:data:`fast_2rdm`
|
2019-03-07 16:29:06 +01:00
|
|
|
* :c:data:`frozen_orb_scf`
|
|
|
|
* :c:data:`h0_type`
|
2024-12-04 15:58:59 +01:00
|
|
|
* :c:data:`hess_cv_cv`
|
|
|
|
* :c:data:`hf_exchange`
|
|
|
|
* :c:data:`io_ao_cholesky`
|
2019-03-07 16:29:06 +01:00
|
|
|
* :c:data:`io_ao_integrals_kinetic`
|
2024-12-04 15:58:59 +01:00
|
|
|
* :c:data:`io_ao_integrals_n_e`
|
2019-03-07 16:29:06 +01:00
|
|
|
* :c:data:`io_ao_integrals_overlap`
|
|
|
|
* :c:data:`io_ao_integrals_pseudo`
|
|
|
|
* :c:data:`io_ao_one_e_integrals`
|
|
|
|
* :c:data:`io_ao_two_e_integrals`
|
|
|
|
* :c:data:`io_ao_two_e_integrals_erf`
|
2024-12-04 15:58:59 +01:00
|
|
|
* :c:data:`io_mo_cholesky`
|
2019-03-07 16:29:06 +01:00
|
|
|
* :c:data:`io_mo_integrals_kinetic`
|
2024-12-04 15:58:59 +01:00
|
|
|
* :c:data:`io_mo_integrals_n_e`
|
2019-03-07 16:29:06 +01:00
|
|
|
* :c:data:`io_mo_integrals_pseudo`
|
|
|
|
* :c:data:`io_mo_one_e_integrals`
|
|
|
|
* :c:data:`io_mo_two_e_integrals`
|
|
|
|
* :c:data:`io_mo_two_e_integrals_erf`
|
2024-12-04 15:58:59 +01:00
|
|
|
* :c:data:`io_nuclear_repulsion`
|
|
|
|
* :c:data:`io_two_body_rdm_aa`
|
|
|
|
* :c:data:`io_two_body_rdm_ab`
|
|
|
|
* :c:data:`io_two_body_rdm_bb`
|
|
|
|
* :c:data:`io_two_body_rdm_spin_trace`
|
|
|
|
* :c:data:`is_periodic`
|
2019-03-07 16:29:06 +01:00
|
|
|
* :c:data:`level_shift`
|
2024-12-04 15:58:59 +01:00
|
|
|
* :c:data:`level_shift_casscf`
|
|
|
|
* :c:data:`lin_dep_cutoff`
|
2019-03-07 16:29:06 +01:00
|
|
|
* :c:data:`max_dim_diis`
|
|
|
|
* :c:data:`mo_class`
|
|
|
|
* :c:data:`mo_coef`
|
2024-12-04 15:58:59 +01:00
|
|
|
* :c:data:`mo_coef_aux`
|
|
|
|
* :c:data:`mo_coef_imag`
|
2019-03-07 16:29:06 +01:00
|
|
|
* :c:data:`mo_guess_type`
|
2024-12-04 15:58:59 +01:00
|
|
|
* :c:data:`mo_integrals_cache_shift`
|
2019-03-07 16:29:06 +01:00
|
|
|
* :c:data:`mo_integrals_threshold`
|
|
|
|
* :c:data:`mo_label`
|
|
|
|
* :c:data:`mo_num`
|
|
|
|
* :c:data:`mo_occ`
|
2024-12-04 15:58:59 +01:00
|
|
|
* :c:data:`mo_two_e_integrals_erf_in_map`
|
2019-03-07 16:29:06 +01:00
|
|
|
* :c:data:`mo_two_e_integrals_in_map`
|
2024-12-04 15:58:59 +01:00
|
|
|
* :c:data:`mu_dft_type`
|
2019-03-07 16:29:06 +01:00
|
|
|
* :c:data:`mu_erf`
|
2024-12-04 15:58:59 +01:00
|
|
|
* :c:data:`n_act_orb`
|
|
|
|
* :c:data:`n_big_act_orb`
|
2019-03-07 16:29:06 +01:00
|
|
|
* :c:data:`n_core_orb`
|
2024-12-04 15:58:59 +01:00
|
|
|
* :c:data:`n_del_orb`
|
2019-03-07 16:29:06 +01:00
|
|
|
* :c:data:`n_det`
|
|
|
|
* :c:data:`n_det_generators`
|
|
|
|
* :c:data:`n_det_max`
|
|
|
|
* :c:data:`n_det_max_full`
|
2024-12-04 15:58:59 +01:00
|
|
|
* :c:data:`n_det_max_opt`
|
2019-03-07 16:29:06 +01:00
|
|
|
* :c:data:`n_det_print_wf`
|
|
|
|
* :c:data:`n_det_selectors`
|
2024-12-04 15:58:59 +01:00
|
|
|
* :c:data:`n_inact_orb`
|
2019-03-07 16:29:06 +01:00
|
|
|
* :c:data:`n_int`
|
|
|
|
* :c:data:`n_it_scf_max`
|
2024-12-04 15:58:59 +01:00
|
|
|
* :c:data:`n_pts_charge`
|
2019-03-07 16:29:06 +01:00
|
|
|
* :c:data:`n_states`
|
|
|
|
* :c:data:`n_states_diag`
|
2024-12-04 15:58:59 +01:00
|
|
|
* :c:data:`n_virt_orb`
|
|
|
|
* :c:data:`nb_it_max_lambda`
|
|
|
|
* :c:data:`nb_it_max_pre_search`
|
|
|
|
* :c:data:`no_core_density`
|
|
|
|
* :c:data:`no_oa_or_av_opt`
|
|
|
|
* :c:data:`normalize_dm`
|
2019-03-07 16:29:06 +01:00
|
|
|
* :c:data:`nthreads_davidson`
|
|
|
|
* :c:data:`nthreads_pt2`
|
|
|
|
* :c:data:`nucl_charge`
|
|
|
|
* :c:data:`nucl_charge_remove`
|
|
|
|
* :c:data:`nucl_coord`
|
|
|
|
* :c:data:`nucl_label`
|
|
|
|
* :c:data:`nucl_num`
|
|
|
|
* :c:data:`nuclear_repulsion`
|
2024-12-04 15:58:59 +01:00
|
|
|
* :c:data:`nucleus_shell_num`
|
2019-03-07 16:29:06 +01:00
|
|
|
* :c:data:`only_expected_s2`
|
2024-12-04 15:58:59 +01:00
|
|
|
* :c:data:`optimization_max_nb_iter`
|
|
|
|
* :c:data:`optimization_method`
|
|
|
|
* :c:data:`ormas_max_e`
|
|
|
|
* :c:data:`ormas_min_e`
|
|
|
|
* :c:data:`ormas_mstart`
|
|
|
|
* :c:data:`ormas_n_space`
|
|
|
|
* :c:data:`point_charges`
|
|
|
|
* :c:data:`prim_coef`
|
|
|
|
* :c:data:`prim_expo`
|
|
|
|
* :c:data:`prim_normalization_factor`
|
|
|
|
* :c:data:`prim_num`
|
|
|
|
* :c:data:`primitives_normalized`
|
|
|
|
* :c:data:`print_all_transitions`
|
|
|
|
* :c:data:`pruning`
|
2019-03-07 16:29:06 +01:00
|
|
|
* :c:data:`pseudo_dz_k`
|
|
|
|
* :c:data:`pseudo_dz_kl`
|
|
|
|
* :c:data:`pseudo_grid_rmax`
|
|
|
|
* :c:data:`pseudo_grid_size`
|
|
|
|
* :c:data:`pseudo_klocmax`
|
|
|
|
* :c:data:`pseudo_kmax`
|
|
|
|
* :c:data:`pseudo_lmax`
|
|
|
|
* :c:data:`pseudo_n_k`
|
|
|
|
* :c:data:`pseudo_n_kl`
|
2019-05-28 10:23:50 +02:00
|
|
|
* :c:data:`pseudo_sym`
|
2019-03-07 16:29:06 +01:00
|
|
|
* :c:data:`pseudo_v_k`
|
|
|
|
* :c:data:`pseudo_v_kl`
|
|
|
|
* :c:data:`psi_cas`
|
|
|
|
* :c:data:`psi_coef`
|
|
|
|
* :c:data:`psi_coef_max`
|
|
|
|
* :c:data:`psi_det`
|
|
|
|
* :c:data:`psi_det_alpha_unique`
|
|
|
|
* :c:data:`psi_det_beta_unique`
|
|
|
|
* :c:data:`psi_det_size`
|
|
|
|
* :c:data:`pt2_e0_denominator`
|
|
|
|
* :c:data:`pt2_f`
|
|
|
|
* :c:data:`pt2_max`
|
2024-12-04 15:58:59 +01:00
|
|
|
* :c:data:`pt2_min_casscf`
|
|
|
|
* :c:data:`pt2_min_parallel_tasks`
|
2019-03-07 16:29:06 +01:00
|
|
|
* :c:data:`pt2_n_teeth`
|
|
|
|
* :c:data:`pt2_relative_error`
|
2024-12-04 15:58:59 +01:00
|
|
|
* :c:data:`pts_charge_coord`
|
|
|
|
* :c:data:`pts_charge_z`
|
2019-03-07 16:29:06 +01:00
|
|
|
* :c:data:`qp_max_mem`
|
|
|
|
* :c:data:`read_wf`
|
2024-12-04 15:58:59 +01:00
|
|
|
* :c:data:`restore_symm`
|
2019-03-07 16:29:06 +01:00
|
|
|
* :c:data:`s2_eig`
|
2024-12-04 15:58:59 +01:00
|
|
|
* :c:data:`save_threshold`
|
|
|
|
* :c:data:`save_wf_after_selection`
|
2019-03-07 16:29:06 +01:00
|
|
|
* :c:data:`scf_algorithm`
|
2019-06-15 00:20:35 +02:00
|
|
|
* :c:data:`selection_factor`
|
2024-12-04 15:58:59 +01:00
|
|
|
* :c:data:`seniority_max`
|
|
|
|
* :c:data:`shell_ang_mom`
|
|
|
|
* :c:data:`shell_index`
|
|
|
|
* :c:data:`shell_normalization_factor`
|
|
|
|
* :c:data:`shell_num`
|
|
|
|
* :c:data:`shell_prim_num`
|
|
|
|
* :c:data:`small_active_space`
|
2019-03-07 16:29:06 +01:00
|
|
|
* :c:data:`state_following`
|
2024-12-04 15:58:59 +01:00
|
|
|
* :c:data:`state_following_casscf`
|
2019-03-07 16:29:06 +01:00
|
|
|
* :c:data:`target_energy`
|
2024-12-04 15:58:59 +01:00
|
|
|
* :c:data:`thresh_casscf`
|
|
|
|
* :c:data:`thresh_cc`
|
|
|
|
* :c:data:`thresh_delta`
|
|
|
|
* :c:data:`thresh_eig`
|
|
|
|
* :c:data:`thresh_model`
|
|
|
|
* :c:data:`thresh_model_2`
|
|
|
|
* :c:data:`thresh_opt_max_elem_grad`
|
|
|
|
* :c:data:`thresh_rho`
|
|
|
|
* :c:data:`thresh_rho_2`
|
2019-03-07 16:29:06 +01:00
|
|
|
* :c:data:`thresh_scf`
|
2019-05-28 10:23:50 +02:00
|
|
|
* :c:data:`thresh_sym`
|
2024-12-04 15:58:59 +01:00
|
|
|
* :c:data:`thresh_wtg`
|
|
|
|
* :c:data:`thresh_wtg2`
|
2019-03-07 16:29:06 +01:00
|
|
|
* :c:data:`threshold_davidson`
|
2024-12-04 15:58:59 +01:00
|
|
|
* :c:data:`threshold_davidson_from_pt2`
|
2019-03-07 16:29:06 +01:00
|
|
|
* :c:data:`threshold_diis`
|
|
|
|
* :c:data:`threshold_generators`
|
2024-12-04 15:58:59 +01:00
|
|
|
* :c:data:`threshold_nonsym_davidson`
|
|
|
|
* :c:data:`twice_hierarchy_max`
|
|
|
|
* :c:data:`typ`
|
|
|
|
* :c:data:`use_cgtos`
|
|
|
|
* :c:data:`use_only_lr`
|
2019-03-07 16:29:06 +01:00
|
|
|
* :c:data:`variance_max`
|
2024-12-04 15:58:59 +01:00
|
|
|
* :c:data:`version_avoid_saddle`
|
|
|
|
* :c:data:`version_lambda_search`
|
2019-06-15 00:20:35 +02:00
|
|
|
* :c:data:`weight_one_e_dm`
|
|
|
|
* :c:data:`weight_selection`
|
2024-12-04 15:58:59 +01:00
|
|
|
* :c:data:`without_diagonal`
|
2019-03-07 16:29:06 +01:00
|
|
|
|
|
|
|
|
|
|
|
.. c:var:: mpi_rank
|
|
|
|
|
|
|
|
|
|
|
|
File : :file:`mpi/mpi.irp.f`
|
|
|
|
|
|
|
|
.. code:: fortran
|
|
|
|
|
|
|
|
integer :: mpi_rank
|
|
|
|
integer :: mpi_size
|
|
|
|
|
|
|
|
|
|
|
|
Rank of MPI process and number of MPI processes
|
|
|
|
|
|
|
|
Needed by:
|
|
|
|
|
|
|
|
.. hlist::
|
|
|
|
:columns: 3
|
|
|
|
|
|
|
|
* :c:data:`mpi_master`
|
|
|
|
|
|
|
|
|
|
|
|
.. c:var:: mpi_size
|
|
|
|
|
|
|
|
|
|
|
|
File : :file:`mpi/mpi.irp.f`
|
|
|
|
|
|
|
|
.. code:: fortran
|
|
|
|
|
|
|
|
integer :: mpi_rank
|
|
|
|
integer :: mpi_size
|
|
|
|
|
|
|
|
|
|
|
|
Rank of MPI process and number of MPI processes
|
|
|
|
|
|
|
|
Needed by:
|
|
|
|
|
|
|
|
.. hlist::
|
|
|
|
:columns: 3
|
|
|
|
|
|
|
|
* :c:data:`mpi_master`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Subroutines / functions
|
|
|
|
-----------------------
|
|
|
|
|
|
|
|
.. c:function:: broadcast_chunks_double:
|
|
|
|
|
|
|
|
|
|
|
|
File : :file:`mpi/mpi.irp.f_template_97`
|
|
|
|
|
|
|
|
.. code:: fortran
|
|
|
|
|
|
|
|
subroutine broadcast_chunks_double(A, LDA)
|
|
|
|
|
|
|
|
|
|
|
|
Broadcast with chunks of ~2GB
|
|
|
|
|
|
|
|
|
|
|
|
.. c:function:: broadcast_chunks_integer:
|
|
|
|
|
|
|
|
|
|
|
|
File : :file:`mpi/mpi.irp.f_template_97`
|
|
|
|
|
|
|
|
.. code:: fortran
|
|
|
|
|
|
|
|
subroutine broadcast_chunks_integer(A, LDA)
|
|
|
|
|
|
|
|
|
|
|
|
Broadcast with chunks of ~2GB
|
|
|
|
|
|
|
|
|
|
|
|
.. c:function:: broadcast_chunks_integer8:
|
|
|
|
|
|
|
|
|
|
|
|
File : :file:`mpi/mpi.irp.f_template_97`
|
|
|
|
|
|
|
|
.. code:: fortran
|
|
|
|
|
|
|
|
subroutine broadcast_chunks_integer8(A, LDA)
|
|
|
|
|
|
|
|
|
|
|
|
Broadcast with chunks of ~2GB
|
|
|
|
|
|
|
|
|
|
|
|
.. c:function:: mpi_print:
|
|
|
|
|
|
|
|
|
|
|
|
File : :file:`mpi/mpi.irp.f`
|
|
|
|
|
|
|
|
.. code:: fortran
|
|
|
|
|
|
|
|
subroutine mpi_print(string)
|
|
|
|
|
|
|
|
|
|
|
|
Print string to stdout if the MPI rank is zero.
|
|
|
|
|
|
|
|
Needs:
|
|
|
|
|
|
|
|
.. hlist::
|
|
|
|
:columns: 3
|
|
|
|
|
|
|
|
* :c:data:`mpi_master`
|
|
|
|
|
|
|
|
Called by:
|
|
|
|
|
|
|
|
.. hlist::
|
|
|
|
:columns: 3
|
|
|
|
|
|
|
|
* :c:func:`run_slave_main`
|
|
|
|
|