MPI - Functions
Index
PeriLab.IO.find_and_set_core_value_avg
PeriLab.IO.find_and_set_core_value_max
PeriLab.IO.find_and_set_core_value_min
PeriLab.IO.find_and_set_core_value_sum
PeriLab.IO.gather_values
PeriLab.IO.send_single_value_from_vector
PeriLab.IO.send_value
PeriLab.IO.send_vector_from_root_to_core_i
PeriLab.IO.split_vector
PeriLab.IO.synch_controller_bonds_to_responder
PeriLab.IO.synch_controller_bonds_to_responder_flattened
PeriLab.IO.synch_controller_to_responder
PeriLab.IO.synch_responder_to_controller
MPI
PeriLab.IO.send_single_value_from_vector
— Functionsend_single_value_from_vector(comm::MPI.Comm, controller::Int64, values::Union{Int64,Vector{Float64},Vector{Int64},Vector{Bool}}, type::Type)
Sends a single value from a vector to a controller
Arguments
comm::MPI.Comm
: The MPI communicatorcontroller::Int64
: The controllervalues::Union{Int64,Vector{Float64},Vector{Int64},Vector{Bool}}
: The valuestype::Type
: The type
Returns
recv_msg::Union{Int64,Vector{Float64},Vector{Int64},Vector{Bool}}
: The received message
PeriLab.IO.synch_responder_to_controller
— Functionsynch_responder_to_controller(comm::MPI.Comm, overlapnodes, vector, dof)
Synch the responder to the controller
Arguments
comm::MPI.Comm
: The MPI communicatoroverlapnodes::Dict
: The overlap nodesvector::Vector
: The vectordof::Int
: The degree of freedom
Returns
vector::Vector
: The vector
PeriLab.IO.synch_controller_to_responder
— Functionsynch_controller_to_responder(comm::MPI.Comm, overlapnodes, vector, dof)
Synch the controller to the responder
Arguments
comm::MPI.Comm
: The MPI communicatoroverlapnodes::Dict
: The overlap nodesvector::Vector
: The vectordof::Int
: The degree of freedom
Returns
vector::Vector
: The vector
PeriLab.IO.synch_controller_bonds_to_responder
— Functionsynch_controller_bonds_to_responder(comm::MPI.Comm, overlapnodes, array, dof)
Synch the controller bonds to the responder
Arguments
comm::MPI.Comm
: The MPI communicatoroverlapnodes::Dict
: The overlap nodesarray::Array
: The arraydof::Int
: The degree of freedom
Returns
array::Array
: The array
PeriLab.IO.split_vector
— Functionsplit_vector(input, row_nums, dof)
Split a vector into a vector of matrices
Arguments
input::Vector
: The input vectorrow_nums::Vector
: The row numbersdof::Int
: The degree of freedom
Returns
result::Vector
: The result vector
PeriLab.IO.synch_controller_bonds_to_responder_flattened
— Functionsynch_controller_bonds_to_responder_flattened(comm::MPI.Comm, overlapnodes, array, dof)
Synch the controller bonds to the responder
Arguments
comm::MPI.Comm
: The MPI communicatoroverlapnodes::Dict
: The overlap nodesarray::Array
: The arraydof::Int
: The degree of freedom
Returns
array::Array
: The array
PeriLab.IO.send_vector_from_root_to_core_i
— Functionsend_vector_from_root_to_core_i(comm::MPI.Comm, send_msg, recv_msg, distribution)
Sends a vector from the root to the core i
Arguments
comm::MPI.Comm
: The MPI communicatorsend_msg::Union{Int64,Vector{Float64},Vector{Int64},Vector{Bool}}
: The send messagerecv_msg::Union{Int64,Vector{Float64},Vector{Int64},Vector{Bool}}
: The receive messagedistribution::Vector{Int64}
: The distribution
Returns
recv_msg::Union{Int64,Vector{Float64},Vector{Int64},Vector{Bool}}
: The received message
PeriLab.IO.send_value
— Functionsend_value(comm::MPI.Comm, controller, send_msg)
Sends a value to a controller
Arguments
comm::MPI.Comm
: The MPI communicatorcontroller::Int64
: The controllersend_msg::Union{Int64,Vector{Float64},Vector{Int64},Vector{Bool}}
: The send message
Returns
recv_msg::Union{Int64,Vector{Float64},Vector{Int64},Vector{Bool}}
: The received message
PeriLab.IO.find_and_set_core_value_min
— Functionfind_and_set_core_value_min(comm::MPI.Comm, value::Union{Float64,Int64})
Find and set core value min
Arguments
comm::MPI.Comm
: The MPI communicatorvalue::Union{Float64,Int64}
: The value
Returns
recv_msg::Union{Int64,Vector{Float64},Vector{Int64},Vector{Bool}}
: The received message
PeriLab.IO.find_and_set_core_value_max
— Functionfind_and_set_core_value_max(comm::MPI.Comm, value::Union{Float64,Int64})
Find and set core value max
Arguments
comm::MPI.Comm
: The MPI communicatorvalue::Union{Float64,Int64}
: The value
Returns
recv_msg::Union{Int64,Vector{Float64},Vector{Int64},Vector{Bool}}
: The received message
PeriLab.IO.find_and_set_core_value_sum
— Functionfind_and_set_core_value_sum(comm::MPI.Comm, value::Union{Float64,Int64})
Find and set core value sum
Arguments
comm::MPI.Comm
: The MPI communicatorvalue::Union{Float64,Int64}
: The value
Returns
recv_msg::Union{Int64,Vector{Float64},Vector{Int64},Vector{Bool}}
: The received message
PeriLab.IO.find_and_set_core_value_avg
— Functionfind_and_set_core_value_avg(comm::MPI.Comm, value::Union{Float64,Int64})
Find and set core value avg
Arguments
comm::MPI.Comm
: The MPI communicatorvalue::Union{Float64,Int64}
: The value
Returns
recv_msg::Union{Int64,Vector{Float64},Vector{Int64},Vector{Bool}}
: The received message
PeriLab.IO.gather_values
— Functiongather_values(comm::MPI.Comm, value::Any)
Gather values
Arguments
comm::MPI.Comm
: The MPI communicatorvalue::Any
: The value
Returns
recv_msg::Any
: The received message