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
65ec6456
Commit
65ec6456
authored
2 years ago
by
Guillaume Demesy
Browse files
Options
Downloads
Patches
Plain Diff
update M matrix bash
parent
8dcb3cf8
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#10106
passed
2 years ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
DiffractionGratings/grating3D_parallel_Mmatrix.sh
+4
-4
4 additions, 4 deletions
DiffractionGratings/grating3D_parallel_Mmatrix.sh
DiffractionGratings/grating3D_postplot_Mmatrix.py
+2
-1
2 additions, 1 deletion
DiffractionGratings/grating3D_postplot_Mmatrix.py
with
6 additions
and
5 deletions
DiffractionGratings/grating3D_parallel_Mmatrix.sh
+
4
−
4
View file @
65ec6456
#!/bin/bash
export
OPENBLAS_NUM_THREADS
=
1
export
OMP_NUM_THREADS
=
1
export
NPROC
=
96
export
lambda_min
=
400
export
nb_lam
=
100
export
nb_phi
=
59
export
lambda_min
=
350
export
lambda_max
=
800
export
FLAG_TOTAL
=
0
export
GRATING_CASE
=
"half_ellipsoid"
export
myDir
=
"res_Matrix_nb_lam"
$nb_lam
"_nb_phi"
$nb_phi
"_total"
$FLAG_TOTAL
export
myFile
=
"run_phideg_values_"
$nb_phi
".out"
rm
-r
$myDir
rm
$myFile
mkdir
$myDir
gmsh grating3D.geo
-3
-o
grating3D.msh
...
...
This diff is collapsed.
Click to expand it.
DiffractionGratings/grating3D_postplot_Mmatrix.py
+
2
−
1
View file @
65ec6456
import
numpy
as
np
import
matplotlib.pyplot
as
plt
import
matplotlib
as
mpl
mpl
.
font_manager
.
_rebuild
()
plt
.
rcParams
.
update
({
"
text.usetex
"
:
True
})
def
add_colorbar
(
mappable
):
...
...
@@ -158,6 +159,6 @@ for i in range(4):
ax
.
set_rorigin
(
which_orig
)
plt
.
subplots_adjust
(
top
=
0.92
,
bottom
=
0.08
,
left
=
0.10
,
right
=
0.95
,
hspace
=
0.25
,
wspace
=
0.35
)
plt
.
savefig
(
'
Mmatrix.jpg
'
)
plt
.
savefig
(
'
Mmatrix.
pdf
'
,
bbox_inches
=
'
tight
'
,
pad_inches
=
0
)
plt
.
savefig
(
'
Mmatrix.
svg
'
)
plt
.
show
()
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