/
wf_run_use_case.cwl
51 lines (42 loc) · 970 Bytes
/
wf_run_use_case.cwl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/usr/bin/env cwl-runner
cwlVersion: v1.0
class: Workflow
outputs:
paperpdf:
type: File
outputSource: compile_paper/pdf
inputs:
geometryfile:
type: File
default:
class: File
location: ../source/unit_square.geo
steps:
make_mesh:
run: make_gmsh_mesh.cwl
in:
geofile: geometryfile
out: [mesh, domain_size]
convert_mesh:
run: convert_msh_to_xdmf.cwl
in:
inputmesh: make_mesh/mesh
out: [outputmesh, outputmeshdata]
run_simulation:
run: run_dolfin.cwl
in:
xdmfmeshfile: convert_mesh/outputmesh
h5meshfile: convert_mesh/outputmeshdata
domainsize: make_mesh/domain_size
out: [resultvtu, resultpvd]
plot_over_line:
run: make_paraview_plot.cwl
in:
vtkfile: run_simulation/resultvtu
pvdfile: run_simulation/resultpvd
out: [resultcsv]
compile_paper:
run: compile_paper.cwl
in:
csvfile: plot_over_line/resultcsv
out: [pdf]