Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
ElmerCSC
GitHub Repository: ElmerCSC/elmerfem
Path: blob/devel/elmerice/examples/InverseMethods_OLD/RunTest.sh
3203 views
1
#!/bin/bash
2
3
# Define the number of partitions (has to be a parallel run, i.e. np>1 !!)
4
export np=4
5
6
# Test to run
7
8
file=Adjoint_Beta.sif # Control inverse method; optimisation of the slip coef.
9
#file=Adjoint_Beta_GradientValid.sif # Control inverse method; Compare Adjoint total derivative with finite difference
10
#file=Adjoint_Mu.sif # Control inverse method; optimisation of the Viscosity
11
#file=Adjoint_Mu_GradientValid.sif # Control inverse method; Compare Adjoint total derivative with finite difference
12
#file=Robin_Beta.sif # Robin inverse method; optimisation of the slip coef.
13
#file=Robin_Beta_GradientValid.sif # Robin inverse method; Compare Robin total derivative with finite difference
14
15
## make compilation and Mesh
16
make clean
17
make
18
make Mesh
19
20
# Run the test
21
echo $file > ELMERSOLVER_STARTINFO
22
mpirun -n $np ElmerSolver_mpi
23
24