-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake_meshset_strong_3.sh
More file actions
executable file
·41 lines (31 loc) · 1003 Bytes
/
make_meshset_strong_3.sh
File metadata and controls
executable file
·41 lines (31 loc) · 1003 Bytes
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
#!/bin/bash
# make a set of parallel meshes for a strong scaling study
# the output file name is of the form:
# "$name_prefix"_$idx_$nproc
# where "$name_prefix", $idx, and $nproc are defined below
# variable to determine the number of elements
first=1 # number of processes to start with
inc=1 # increment for the number of processes
last=4 # final number of processes
name_prefix="strong8" # the file name prefix
perturb=0 # control perturbation of mesh points
echo "perturb = $perturb"
numEl=200
# make the mesh
./a1tet $numEl $numEl $perturb
./make_dmg.sh
# now split it repeatedly
# current mesh index
idx=1
i=$first
#for i in `seq $first $inc $last`;
while [ $i -le $last ];
do
echo "nprocs = $i"
# ./a1tri2_polar $i $i
# ./make_parallel_mesh2.sh $i $i $perturb "$name_prefix"_"$idx"_ $nproc
./split.sh $i "$name_prefix"_"$idx"_ $nproc
# cp -v ./meshfiles/"$name_prefix"_"$idx"* ~/meshfiles/
i=$(($i + $inc))
idx=$(expr $idx + 1)
done