Skip to content
Snippets Groups Projects
Commit 30eaba26 authored by Dominic Kempf's avatar Dominic Kempf
Browse files

Use the eval command for grid size calculation

parent 1b0c9c21
No related branches found
No related tags found
No related merge requests found
......@@ -3,8 +3,22 @@ __exec_suffix = deg{formcompiler.ufl_variants.degree}_{opcount_suffix}
opcount_suffix = opcount, nonopcount | expand opcount
# Calculate the size of the grid to equlibritate it to 100 MB/rank
# Input parameters
mbperrank = 1
ranks = 16
floatingbytes = 8
# Metaini Calculations
totalmem = {mbperrank} * 1048576 * {ranks} | eval
dofsperdir = {formcompiler.ufl_variants.degree} + 1 | eval
celldofs = {dofsperdir} * {dofsperdir} * {dofsperdir} | eval
totalcells = {totalmem} / ({floatingbytes} * {celldofs}) | eval
cellsperdir = {totalcells} ** (1/3) | eval | toint
# Setup the grid!
extension = 1.0 1.0 1.0
cells = 16 16 16
cells = {cellsperdir} {cellsperdir} {cellsperdir}
[wrapper.vtkcompare]
name = {__name}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment