MPI - Functions
Index
PeriLab.MPI_Communication.broadcast_valuePeriLab.MPI_Communication.find_and_set_core_value_avgPeriLab.MPI_Communication.find_and_set_core_value_maxPeriLab.MPI_Communication.find_and_set_core_value_minPeriLab.MPI_Communication.find_and_set_core_value_sumPeriLab.MPI_Communication.gather_valuesPeriLab.MPI_Communication.send_single_value_from_vectorPeriLab.MPI_Communication.send_vector_from_root_to_core_iPeriLab.MPI_Communication.split_vectorPeriLab.MPI_Communication.synch_controller_bonds_to_responderPeriLab.MPI_Communication.synch_controller_bonds_to_responder_flattenedPeriLab.MPI_Communication.synch_controller_to_responderPeriLab.MPI_Communication.synch_responder_to_controller
MPI
PeriLab.MPI_Communication.send_single_value_from_vector — Function
send_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.MPI_Communication.synch_responder_to_controller — Function
synch_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.MPI_Communication.synch_controller_to_responder — Function
synch_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.MPI_Communication.synch_controller_bonds_to_responder — Function
synch_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.MPI_Communication.split_vector — Function
split_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.MPI_Communication.synch_controller_bonds_to_responder_flattened — Function
synch_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.MPI_Communication.send_vector_from_root_to_core_i — Function
send_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.MPI_Communication.broadcast_value — Function
broadcast_value(comm::MPI.Comm, send_msg)Broadcast a value to all ranks
Arguments
comm::MPI.Comm: The MPI communicatorsend_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.MPI_Communication.find_and_set_core_value_min — Function
find_and_set_core_value_min(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.MPI_Communication.find_and_set_core_value_max — Function
find_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.MPI_Communication.find_and_set_core_value_sum — Function
find_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.MPI_Communication.find_and_set_core_value_avg — Function
find_and_set_core_value_avg(comm::MPI.Comm,
value::T,
nnodes::Int64) where {T<:Union{Float64,Int64}}Find and set core value avg
Arguments
comm::MPI.Comm: The MPI communicatorvalue::Union{Float64,Int64}: The value
Returns
recv_msg::Float64: The received a Float64 message
PeriLab.MPI_Communication.gather_values — Function
gather_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