Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NP_TMcode
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Giacomo Mulas
NP_TMcode
Commits
12fd9905
Commit
12fd9905
authored
2 months ago
by
Giovanni La Mura
Browse files
Options
Downloads
Patches
Plain Diff
Add parallel test of two-layered SPHERE
parent
c9f4a2cb
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+5
-5
5 additions, 5 deletions
.gitlab-ci.yml
test_data/sphere/OSPH_two_layers
+6172
-0
6172 additions, 0 deletions
test_data/sphere/OSPH_two_layers
test_data/sphere/config_two_layers.yml
+16
-18
16 additions, 18 deletions
test_data/sphere/config_two_layers.yml
with
6193 additions
and
23 deletions
.gitlab-ci.yml
+
5
−
5
View file @
12fd9905
...
@@ -264,10 +264,10 @@ running_stage:
...
@@ -264,10 +264,10 @@ running_stage:
-
mv c_TEDF c_TEDF_dev
-
mv c_TEDF c_TEDF_dev
-
mv c_TEDF.hd5 c_TEDF_dev.hd5
-
mv c_TEDF.hd5 c_TEDF_dev.hd5
-
echo "Testing parallel execution of SPHERE"
-
echo "Testing parallel execution of SPHERE"
-
../../src/scripts/model_maker.py ../../test_data/sphere/config_
181_xi
.yml
-
../../src/scripts/model_maker.py ../../test_data/sphere/config_
two_layers
.yml
-
echo "Running parallel np_sphere"
-
echo "Running parallel np_sphere"
-
OMP_NUM_THREADS=2 ./np_sphere DEDFB_
181_xi DSPH_181_xi
.
-
OMP_NUM_THREADS=2 ./np_sphere DEDFB_
two_layers DSPH_two_layers
.
-
mv c_OSPH c_OSPH_
181_xi
-
mv c_OSPH c_OSPH_
two_layers
-
cd ../cluster
-
cd ../cluster
-
echo "Testing configurator for CLUSTER"
-
echo "Testing configurator for CLUSTER"
-
../../src/scripts/model_maker.py ../../test_data/cluster/config_dev.yml
-
../../src/scripts/model_maker.py ../../test_data/cluster/config_dev.yml
...
@@ -313,8 +313,8 @@ testing_stage:
...
@@ -313,8 +313,8 @@ testing_stage:
-
export FFILE=../../test_data/sphere/OSPH
-
export FFILE=../../test_data/sphere/OSPH
-
python3 ../../src/scripts/pycompare.py --no-progress --ffile $FFILE --cfile c_OSPH_dev --html
-
python3 ../../src/scripts/pycompare.py --no-progress --ffile $FFILE --cfile c_OSPH_dev --html
-
echo "Comparing output of parallel SPHERE"
-
echo "Comparing output of parallel SPHERE"
-
export FFILE=../../test_data/sphere/OSPH_
181_xi
-
export FFILE=../../test_data/sphere/OSPH_
two_layers
-
python3 ../../src/scripts/pycompare.py --no-progress --ffile $FFILE --cfile c_OSPH_
181_xi
--html
-
python3 ../../src/scripts/pycompare.py --no-progress --ffile $FFILE --cfile c_OSPH_
two_layers
--html
-
echo "Checking consistency among legacy and HDF5 configuration files"
-
echo "Checking consistency among legacy and HDF5 configuration files"
-
../testing/test_TEDF ../../test_data/sphere/DEDFB c_TEDF_dev c_TEDF_dev.hd5
-
../testing/test_TEDF ../../test_data/sphere/DEDFB c_TEDF_dev c_TEDF_dev.hd5
-
cd ../inclusion
-
cd ../inclusion
...
...
This diff is collapsed.
Click to expand it.
test_data/sphere/OSPH_
181_xi
→
test_data/sphere/OSPH_
two_layers
+
6172
−
0
View file @
12fd9905
Source diff could not be displayed: it is too large. Options to address this:
view the blob
.
This diff is collapsed.
Click to expand it.
test_data/sphere/config_
181_xi
.yml
→
test_data/sphere/config_
two_layers
.yml
+
16
−
18
View file @
12fd9905
...
@@ -8,9 +8,9 @@ input_settings:
...
@@ -8,9 +8,9 @@ input_settings:
# Folder to write the code input configuration files
# Folder to write the code input configuration files
input_folder
:
"
."
input_folder
:
"
."
# Name of the scatterer description file
# Name of the scatterer description file
spheres_file
:
"
DEDFB_
181_xi
"
spheres_file
:
"
DEDFB_
two_layers
"
# Name of the geometry description file
# Name of the geometry description file
geometry_file
:
"
DSPH_
181_xi
"
geometry_file
:
"
DSPH_
two_layers
"
output_settings
:
output_settings
:
# Folder for the code output storage
# Folder for the code output storage
...
@@ -32,11 +32,11 @@ particle_settings:
...
@@ -32,11 +32,11 @@ particle_settings:
# Vector of sphere type identifiers (what type is each sphere)
# Vector of sphere type identifiers (what type is each sphere)
sph_types
:
[
1
]
sph_types
:
[
1
]
# Vector of layers in types (how many layers in each type)
# Vector of layers in types (how many layers in each type)
n_layers
:
[
2
]
n_layers
:
[
3
]
# Spherical monomer radii in m (one size for each type)
# Spherical monomer radii in m (one size for each type)
radii
:
[
9.085603e-8
]
radii
:
[
1.31281e-07
]
# Layer fractional radii (one per layer in each type)
# Layer fractional radii (one per layer in each type)
rad_frac
:
[
[
0.5
,
1.0
]
]
rad_frac
:
[
[
6.58641e-01
,
6.58642e-01
,
1.0
]
]
# Index of the dielectric constants (one per layer in each type)
# Index of the dielectric constants (one per layer in each type)
#
#
# 1 is first file in `dielec_file`, 2 is second ...
# 1 is first file in `dielec_file`, 2 is second ...
...
@@ -45,9 +45,9 @@ particle_settings:
...
@@ -45,9 +45,9 @@ particle_settings:
material_settings
:
material_settings
:
diel_flag
:
0
diel_flag
:
0
# External medium dielectric constant
# External medium dielectric constant
extern_diel
:
1.00e+00
extern_diel
:
1.00
0
e+00
# Dielectric constant files folder
# Dielectric constant files folder
dielec_path
:
"
.
./../ref_data
"
dielec_path
:
"
."
# List of dielectric constant files (used if diel_flag = 0)
# List of dielectric constant files (used if diel_flag = 0)
dielec_file
:
[
"
eps_draine_Si.csv"
,
"
eps_ashok_C.csv"
]
dielec_file
:
[
"
eps_draine_Si.csv"
,
"
eps_ashok_C.csv"
]
# Dielectric constant files format (same for all files)
# Dielectric constant files format (same for all files)
...
@@ -67,15 +67,15 @@ radiation_settings:
...
@@ -67,15 +67,15 @@ radiation_settings:
# Radiation field polarization (LINEAR | CIRCULAR)
# Radiation field polarization (LINEAR | CIRCULAR)
polarization
:
"
LINEAR"
polarization
:
"
LINEAR"
# First scale to be used
# First scale to be used
scale_start
:
1.00e-07
scale_start
:
1.00
0
e-07
# Last scale to be used
# Last scale to be used
scale_end
:
1.00e-06
scale_end
:
1.00
0
e-06
# Calculation step (overridden if `match_mode` is GRID)
# Calculation step (overridden if `match_mode` is GRID)
scale_step
:
5.00e-09
scale_step
:
5.00
0
e-09
# Peak Omega
# Peak Omega
wp
:
3.00
e+08
wp
:
2.99792
e+08
# Peak scale
# Peak scale
xip
:
1.00e+00
xip
:
1.00
0
e+00
# Define scale explicitly (0) or in equal steps (1)
# Define scale explicitly (0) or in equal steps (1)
step_flag
:
0
step_flag
:
0
# Type of scaling variable
# Type of scaling variable
...
@@ -83,15 +83,13 @@ radiation_settings:
...
@@ -83,15 +83,13 @@ radiation_settings:
geometry_settings
:
geometry_settings
:
# Maximum internal field expansion
# Maximum internal field expansion
li
:
4
li
:
20
# Maximum external field expansion (not used by SPHERE)
# Maximum external field expansion (not used by SPHERE)
le
:
8
le
:
20
# Number of transition layer integration points
# Number of transition layer integration points
npnt
:
149
npnt
:
149
# Number of non transition layer integration points
# Number of non transition layer integration points
npntts
:
300
npntts
:
300
# Averaging mode
iavm
:
0
# Meridional plane flag
# Meridional plane flag
isam
:
0
isam
:
0
# Starting incidence azimuth angle
# Starting incidence azimuth angle
...
...
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