File: timana.awk

package info (click to toggle)
p4est 2.3.6-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 8,536 kB
  • sloc: ansic: 87,528; makefile: 855; sh: 635; perl: 272; python: 226; awk: 40; javascript: 23
file content (21 lines) | stat: -rwxr-xr-x 500 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#! /usr/bin/awk -f

/New p(4|8)est/ {
	if ($3 == "p4est") { dim = 2 }
	else if ($3 == "p8est") { dim = 3 }
	#print "We are in dimension " dim
}
/^\[p4est\] Processors [[:digit:]]+ level/ {
	procs = $3
	level = $5
	elems = 0
	#printf "Procs %d level %d\n", procs, level
}
/^\[p4est\] .* balanced to/ {
	elems = $9
}
/^\[p4est\] Summary =/ {
	# Output runtimes for: Refine Balance Partition Ghost Nodes Lnodes
	printf "%d %d %d %g %g %g %g %g %g\n", procs, level, elems,
		$5, $6, $33, $34, $35, $38
}