-
Notifications
You must be signed in to change notification settings - Fork 359
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
83028d7
commit 0cbcbab
Showing
2 changed files
with
40 additions
and
23 deletions.
There are no files selected for viewing
57 changes: 37 additions & 20 deletions
57
centaur/src/main/resources/standardTestCases/cacheBetweenWF/cacheBetweenWFNoCost.wdl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,56 @@ | ||
task getAverage { | ||
Int base1 = 9 | ||
Int base2 = 13 | ||
task one { | ||
Int vertAxis | ||
command { | ||
echo ${(base1*base2)/2} | ||
echo ${vertAxis/2} | ||
} | ||
output { | ||
Float average = read_float(stdout()) | ||
Float semiVertAxis = read_int(stdout()) | ||
} | ||
runtime { | ||
docker: "docker.io/ubuntu@sha256:71cd81252a3563a03ad8daee81047b62ab5d892ebbfbf71cf53415f29c130950" | ||
docker: "gcr.io/gcp-runtimes/ubuntu_16_0_4@sha256:53a002b59dfcd43b4d15e97c1acbeae035ddd1b31a106659a312e9fe65f00afa" | ||
} | ||
} | ||
|
||
task heightProduct{ | ||
Float baseAverage | ||
Int height = 7 | ||
task two { | ||
Int horAxis | ||
command { | ||
echo ${horAxis/2} | ||
} | ||
output { | ||
Float semiHorAxis = read_int(stdout()) | ||
} | ||
runtime { | ||
docker: "gcr.io/gcp-runtimes/ubuntu_16_0_4@sha256:53a002b59dfcd43b4d15e97c1acbeae035ddd1b31a106659a312e9fe65f00afa" | ||
} | ||
} | ||
|
||
task area{ | ||
Float semiVertAxis | ||
Float semiHorAxis | ||
Float pi = 3.14159 | ||
|
||
command { | ||
echo ${baseAverage*height} | ||
echo ${semiHorAxis*semiVertAxis*pi} | ||
} | ||
output { | ||
Float trapezoidalArea = read_float(stdout()) | ||
Float ellipseArea = read_float(stdout()) | ||
} | ||
runtime { | ||
docker: "ubuntu@sha256:71cd81252a3563a03ad8daee81047b62ab5d892ebbfbf71cf53415f29c130950" | ||
} | ||
} | ||
|
||
workflow cacheBetweenWFNoCost { | ||
call getAverage { | ||
} | ||
call heightProduct { | ||
input: baseAverage = getAverage.average | ||
} | ||
output { | ||
heightProduct.trapezoidalArea | ||
} | ||
} | ||
call one { | ||
input: vertAxis = 5 | ||
} | ||
call two { | ||
input: horAxis = 6 | ||
} | ||
call area { | ||
input: semiVertAxis = one.semiVertAxis, semiHorAxis = two.semiHorAxis | ||
} | ||
output { | ||
area.ellipseArea | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters