From 65ec6456e87bf6da94b1a357ea07c800710595ac Mon Sep 17 00:00:00 2001 From: Guillaume D <guillaume.demesy@fresnel.fr> Date: Wed, 12 Oct 2022 10:58:08 +0200 Subject: [PATCH] update M matrix bash --- DiffractionGratings/grating3D_parallel_Mmatrix.sh | 8 ++++---- DiffractionGratings/grating3D_postplot_Mmatrix.py | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/DiffractionGratings/grating3D_parallel_Mmatrix.sh b/DiffractionGratings/grating3D_parallel_Mmatrix.sh index af003d4..91287d8 100644 --- a/DiffractionGratings/grating3D_parallel_Mmatrix.sh +++ b/DiffractionGratings/grating3D_parallel_Mmatrix.sh @@ -1,17 +1,17 @@ #!/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 diff --git a/DiffractionGratings/grating3D_postplot_Mmatrix.py b/DiffractionGratings/grating3D_postplot_Mmatrix.py index 2a9f96e..5fe70bc 100644 --- a/DiffractionGratings/grating3D_postplot_Mmatrix.py +++ b/DiffractionGratings/grating3D_postplot_Mmatrix.py @@ -1,6 +1,7 @@ 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() -- GitLab