Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
models
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
documentation
models
Commits
085d8c1d
Commit
085d8c1d
authored
2 years ago
by
Guillaume Demesy
Browse files
Options
Downloads
Patches
Plain Diff
aim at gmsh/getdp directly
parent
f252d364
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#10542
passed
2 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
DiffractionGratings/grating3D_parallel_Mmatrix.sh
+10
-10
10 additions, 10 deletions
DiffractionGratings/grating3D_parallel_Mmatrix.sh
with
10 additions
and
10 deletions
DiffractionGratings/grating3D_parallel_Mmatrix.sh
+
10
−
10
View file @
085d8c1d
...
@@ -6,21 +6,21 @@ export OMP_NUM_THREADS=1
...
@@ -6,21 +6,21 @@ export OMP_NUM_THREADS=1
export
NPROC
=
96
export
NPROC
=
96
### set gmsh/getdp path if necessary
### set gmsh/getdp path if necessary
# export
GMSHPATH
='/path/to/onelabdir'
# export
mygmsh
='/path/to/onelabdir
/gmsh
'
# export
GETDPPATH
='/path/to/onelabdir'
# export
mygetdp
='/path/to/onelabdir
/getdp
'
export
GMSHPATH
=
'
'
export
mygmsh
=
'gmsh
'
export
GETDPPATH
=
'
'
export
mygetdp
=
'getdp
'
### choose configuration
### choose configuration
##
#
theta loop study for the "U" case
## theta loop study for the "U" case
##
#
config 1
## config 1
# export flag_angle_study="theta"
# export flag_angle_study="theta"
# export loop_angle_max=50
# export loop_angle_max=50
# export fixed_angle=90
# export fixed_angle=90
# export GRATING_CASE="U"
# export GRATING_CASE="U"
##
#
phi loop study for the "U" case
## phi loop study for the "U" case
##
#
config 2
## config 2
export
flag_angle_study
=
"phi"
export
flag_angle_study
=
"phi"
export
loop_angle_max
=
360
export
loop_angle_max
=
360
export
fixed_angle
=
50
export
fixed_angle
=
50
...
@@ -35,7 +35,7 @@ export myDir="res_Matrix_nb_lam"$nb_lam"_nb_"$flag_angle_study$nb_angle"_total"$
...
@@ -35,7 +35,7 @@ export myDir="res_Matrix_nb_lam"$nb_lam"_nb_"$flag_angle_study$nb_angle"_total"$
rm
-r
$myDir
rm
-r
$myDir
mkdir
$myDir
mkdir
$myDir
$
GMSHPATH
/
gmsh grating3D.geo
-setstring
test_case
$GRATING_CASE
-3
-o
grating3D.msh
$
my
gmsh
grating3D.geo
-setstring
test_case
$GRATING_CASE
-3
-o
grating3D.msh
myfunc
()
{
myfunc
()
{
local
mysubDir
=
$myDir
/run_lam
$1_$flag_angle_study$2_psi$3
local
mysubDir
=
$myDir
/run_lam
$1_$flag_angle_study$2_psi$3
...
@@ -51,7 +51,7 @@ myfunc() {
...
@@ -51,7 +51,7 @@ myfunc() {
fi
fi
local
psi
=
$(
echo
"scale=10;90*
$3
"
| bc
)
local
psi
=
$(
echo
"scale=10;90*
$3
"
| bc
)
cd
$mysubDir
cd
$mysubDir
$
GETDPPATH
/
getdp grating3D.pro
-pre
helmholtz_vector
-msh
grating3D.msh
-cal
-pos
postop_helmholtz_vector
-petsc_prealloc
200
-setstring
test_case
$GRATING_CASE
-setnumber
lambda0
$lam
-setnumber
thetadeg
$theta
-setnumber
phideg
$phi
-setnumber
psideg
$psi
-setnumber
FLAG_TOTAL
$FLAG_TOTAL
$
my
getdp
grating3D.pro
-pre
helmholtz_vector
-msh
grating3D.msh
-cal
-pos
postop_helmholtz_vector
-petsc_prealloc
200
-setstring
test_case
$GRATING_CASE
-setnumber
lambda0
$lam
-setnumber
thetadeg
$theta
-setnumber
phideg
$phi
-setnumber
psideg
$psi
-setnumber
FLAG_TOTAL
$FLAG_TOTAL
if
[
$3
-eq
0
]
;
then
cp
res3D/rs.txt ../r_pin_sout_lam
$1_$flag_angle_study$2
.out
;
fi
if
[
$3
-eq
0
]
;
then
cp
res3D/rs.txt ../r_pin_sout_lam
$1_$flag_angle_study$2
.out
;
fi
if
[
$3
-eq
0
]
;
then
cp
res3D/rp.txt ../r_pin_pout_lam
$1_$flag_angle_study$2
.out
;
fi
if
[
$3
-eq
0
]
;
then
cp
res3D/rp.txt ../r_pin_pout_lam
$1_$flag_angle_study$2
.out
;
fi
if
[
$3
-eq
1
]
;
then
cp
res3D/rs.txt ../r_sin_sout_lam
$1_$flag_angle_study$2
.out
;
fi
if
[
$3
-eq
1
]
;
then
cp
res3D/rs.txt ../r_sin_sout_lam
$1_$flag_angle_study$2
.out
;
fi
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment