JuliaFEM / FEMBase.jl

JuliaFEM base package (core functionality)
http://juliafem.org/
MIT License
16 stars 9 forks source link

New public function write_results! #26

Closed ahojukka5 closed 6 years ago

ahojukka5 commented 6 years ago

write_results!(analysis, writer) is a function which is used to implement new results writers for some analysis. Usage example in pseudo-level

type XdmfWriter <: AbstractResultsWriter
    # stuff
end

type Dynamics <: AbstractAnalysis
    # stuff
end

function FEMBase.write_results!(analysis::Dynamics, writer::XdmfWriter)
    # fid = open(writer.filename)
    # for problem in get_problems(analysis)
    #     field = problem("displacement", analysis.time)
    #     write(fid, field)
    # end
    return nothing!
end
coveralls commented 6 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling b85dbd3467679070d2ab9f6a4f25c24f8e706344 on results_writer_abstraction into 2dba5992b3c90ad7a7f7953c18278bd7c4e3940d on master.