2015-11-23 03:17:15 +02:00
|
|
|
# This file is a part of JuliaFEM.
|
|
|
|
|
# License is MIT: see https://github.com/JuliaFEM/JuliaFEM.jl/blob/master/LICENSE.md
|
|
|
|
|
|
2016-02-03 06:49:42 +02:00
|
|
|
#=
|
2016-01-01 16:56:17 +02:00
|
|
|
""" Solution preprocessor: dump matrices to disk before solution.
|
|
|
|
|
|
|
|
|
|
Examples
|
|
|
|
|
--------
|
|
|
|
|
julia> solver = DirectSolver()
|
|
|
|
|
julia> push!(solver.linear_system_solver_preprocessors, :dump_matrices)
|
|
|
|
|
|
|
|
|
|
"""
|
|
|
|
|
function linear_system_solver_preprocess!(solver, iter, time, K, f, C1, C2, D, g, sol, la, ::Type{Val{:dump_matrices}})
|
|
|
|
|
filename = "matrices_$(solver.name)_host_$(myid())_iteration_$(iter).jld"
|
|
|
|
|
info("dumping matrices to disk, file = $filename")
|
|
|
|
|
save(filename,
|
|
|
|
|
"stiffness matrix K", K,
|
|
|
|
|
"force vector f", f,
|
|
|
|
|
"constraint matrix C1", C1,
|
|
|
|
|
"constraint matrix C2", C2,
|
|
|
|
|
"constraint matrix D", D,
|
|
|
|
|
"constraint vector g", g)
|
2015-12-23 01:52:28 +02:00
|
|
|
end
|
2015-12-03 11:29:01 +02:00
|
|
|
|
2016-01-01 17:56:52 +02:00
|
|
|
function linear_system_solver_postprocess!
|
|
|
|
|
end
|
2016-02-03 06:49:42 +02:00
|
|
|
=#
|
2016-01-01 16:56:17 +02:00
|
|
|
|
2015-12-01 20:19:11 +02:00
|
|
|
|