mirror of
https://github.com/ANL-CEEESA/UnitCommitment.jl.git
synced 2025-12-06 08:18:51 -06:00
Revise docs and struct name; add basic MPI test
This commit is contained in:
@@ -4,10 +4,10 @@
|
||||
|
||||
function read(
|
||||
paths::Vector{String},
|
||||
method::ProgressiveHedging.Method,
|
||||
::ProgressiveHedging,
|
||||
)::UnitCommitmentInstance
|
||||
comm = MPI.COMM_WORLD
|
||||
mpi = ProgressiveHedging.MpiInfo(comm)
|
||||
mpi = MpiInfo(comm)
|
||||
(length(paths) % mpi.nprocs == 0) || error(
|
||||
"Number of processes $(mpi.nprocs) is not a divisor of $(length(paths))",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user