Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Gyacomo
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
Package Registry
Model registry
Operate
Environments
Terraform modules
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Antoine Cyril David Hoffmann
Gyacomo
Commits
a143890d
Commit
a143890d
authored
4 years ago
by
Antoine Cyril David Hoffmann
Browse files
Options
Downloads
Patches
Plain Diff
Add the PREFIX and SUFFIX options to add some naming
parent
c997f40d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
matlab/setup.m
+3
-1
3 additions, 1 deletion
matlab/setup.m
wk/marconi_run.m
+16
-11
16 additions, 11 deletions
wk/marconi_run.m
with
19 additions
and
12 deletions
matlab/setup.m
+
3
−
1
View file @
a143890d
...
@@ -80,7 +80,9 @@ degngrad = sprintf(degngrad,[NU,MU]);
...
@@ -80,7 +80,9 @@ degngrad = sprintf(degngrad,[NU,MU]);
if
~
NON_LIN
;
degngrad
=
[
'lin_'
,
degngrad
];
end
if
~
NON_LIN
;
degngrad
=
[
'lin_'
,
degngrad
];
end
resolution
=
[
num2str
(
GRID
.
Nr
),
'x'
,
num2str
(
GRID
.
Nz
/
2
),
'_'
];
resolution
=
[
num2str
(
GRID
.
Nr
),
'x'
,
num2str
(
GRID
.
Nz
/
2
),
'_'
];
gridname
=
[
'L_'
,
num2str
(
L
),
'_'
];
gridname
=
[
'L_'
,
num2str
(
L
),
'_'
];
PARAMS
=
[
resolution
,
gridname
,
degngrad
];
if
(
exist
(
'PREFIX'
,
'var'
)
==
0
);
PREFIX
=
[];
end
;
if
(
exist
(
'SUFFIX'
,
'var'
)
==
0
);
SUFFIX
=
[];
end
;
PARAMS
=
[
PREFIX
,
resolution
,
gridname
,
degngrad
,
SUFFIX
];
BASIC
.
RESDIR
=
[
SIMDIR
,
PARAMS
,
'/'
];
BASIC
.
RESDIR
=
[
SIMDIR
,
PARAMS
,
'/'
];
BASIC
.
PARAMS
=
PARAMS
;
BASIC
.
PARAMS
=
PARAMS
;
BASIC
.
SIMID
=
SIMID
;
BASIC
.
SIMID
=
SIMID
;
...
...
This diff is collapsed.
Click to expand it.
wk/marconi_run.m
+
16
−
11
View file @
a143890d
...
@@ -4,12 +4,12 @@ addpath(genpath('../matlab')) % ... add
...
@@ -4,12 +4,12 @@ addpath(genpath('../matlab')) % ... add
%% Set Up parameters
%% Set Up parameters
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% CLUSTER PARAMETERS
%% CLUSTER PARAMETERS
CLUSTER
.
TIME
=
'0
1
:00:00'
;
% allocation time hh:mm:ss
CLUSTER
.
TIME
=
'
2
0:00:00'
;
% allocation time hh:mm:ss
CLUSTER
.
PART
=
'
dbg
'
;
% dbg or prod
CLUSTER
.
PART
=
'
prod
'
;
% dbg or prod
CLUSTER
.
MEM
=
'16GB'
;
% Memory
CLUSTER
.
MEM
=
'16GB'
;
% Memory
CLUSTER
.
JNAME
=
'gamma_inf'
;
% Job name
CLUSTER
.
JNAME
=
'gamma_inf'
;
% Job name
NP_P
=
2
;
% MPI processes along p
NP_P
=
2
;
% MPI processes along p
NP_KR
=
1
2
;
% MPI processes along kr
NP_KR
=
2
4
;
% MPI processes along kr
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% PHYSICAL PARAMETERS
%% PHYSICAL PARAMETERS
NU
=
0.1
;
% Collision frequency
NU
=
0.1
;
% Collision frequency
...
@@ -18,33 +18,35 @@ NU_HYP = 0.1; % Hyperdiffusivity coefficient
...
@@ -18,33 +18,35 @@ NU_HYP = 0.1; % Hyperdiffusivity coefficient
%% GRID PARAMETERS
%% GRID PARAMETERS
N
=
200
;
% Frequency gridpoints (Nkr = N/2)
N
=
200
;
% Frequency gridpoints (Nkr = N/2)
L
=
120
;
% Size of the squared frequency domain
L
=
120
;
% Size of the squared frequency domain
P
=
2
0
;
% Electron and Ion highest Hermite polynomial degree
P
=
1
0
;
% Electron and Ion highest Hermite polynomial degree
J
=
0
8
;
% Electron and Ion highest Laguerre polynomial degree
J
=
0
5
;
% Electron and Ion highest Laguerre polynomial degree
MU_P
=
0
;
% Hermite hyperdiffusivity -mu_p*(d/dvpar)^4 f
MU_P
=
0
;
% Hermite hyperdiffusivity -mu_p*(d/dvpar)^4 f
MU_J
=
0
;
% Laguerre hyperdiffusivity -mu_j*(d/dvperp)^4 f
MU_J
=
0
;
% Laguerre hyperdiffusivity -mu_j*(d/dvperp)^4 f
%% TIME PARAMETERS
%% TIME PARAMETERS
TMAX
=
2
00
;
% Maximal time unit
TMAX
=
5
00
;
% Maximal time unit
DT
=
1e-2
;
% Time step
DT
=
1e-2
;
% Time step
SPS0D
=
1
;
% Sampling per time unit for profiler
SPS0D
=
1
;
% Sampling per time unit for profiler
SPS2D
=
1
/
10
;
% Sampling per time unit for 2D arrays
SPS2D
=
1
/
10
;
% Sampling per time unit for 2D arrays
SPS5D
=
0
/
50
;
% Sampling per time unit for 5D arrays
SPS5D
=
1
/
50
;
% Sampling per time unit for 5D arrays
SPSCP
=
0
;
% Sampling per time unit for checkpoints
SPSCP
=
0
;
% Sampling per time unit for checkpoints
RESTART
=
0
;
% To restart from last checkpoint
RESTART
=
0
;
% To restart from last checkpoint
JOB2LOAD
=
0
;
JOB2LOAD
=
0
;
%% OPTIONS
%% OPTIONS
SIMID
=
[
'HeLaZ_v2.4_eta_'
,
num2str
(
ETAB
),
'_nu_%0.0e'
];
% Name of the simulation
SIMID
=
[
'HeLaZ_v2.4_eta_'
,
num2str
(
ETAB
),
'_nu_%0.0e'
];
% Name of the simulation
% SIMID = 'Marconi_
test
'; % Name of the simulation
% SIMID = 'Marconi_
parallel_scaling_2D
'; % Name of the simulation
SIMID
=
sprintf
(
SIMID
,
NU
);
SIMID
=
sprintf
(
SIMID
,
NU
);
PREFIX
=
[];
% PREFIX = sprintf('%d_%d_',NP_P, NP_KR);
CO
=
-
3
;
% Collision operator (0 : L.Bernstein, -1 : Full Coulomb, -2 : Dougherty, -3 : GK Dougherty)
CO
=
-
3
;
% Collision operator (0 : L.Bernstein, -1 : Full Coulomb, -2 : Dougherty, -3 : GK Dougherty)
CLOS
=
0
;
% Closure model (0: =0 truncation, 1: semi coll, 2: Copy closure J+1 = J, P+2 = P)
CLOS
=
0
;
% Closure model (0: =0 truncation, 1: semi coll, 2: Copy closure J+1 = J, P+2 = P)
KERN
=
0
;
% Kernel model (0 : GK)
KERN
=
0
;
% Kernel model (0 : GK)
INIT_PHI
=
1
;
% Start simulation with a noisy phi and moments
INIT_PHI
=
1
;
% Start simulation with a noisy phi and moments
%% OUTPUTS
%% OUTPUTS
W_DOUBLE
=
0
;
W_DOUBLE
=
1
;
W_GAMMA
=
0
;
W_GAMMA
=
1
;
W_PHI
=
1
;
W_PHI
=
1
;
W_NA00
=
1
;
W_NA00
=
1
;
W_NAPJ
=
0
;
W_NAPJ
=
1
;
W_SAPJ
=
0
;
W_SAPJ
=
0
;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
...
@@ -77,3 +79,6 @@ setup
...
@@ -77,3 +79,6 @@ setup
write_sbash_marconi
write_sbash_marconi
system
(
'rm fort.90 setup_and_run.sh batch_script.sh'
);
system
(
'rm fort.90 setup_and_run.sh batch_script.sh'
);
disp
(
'done'
);
disp
(
'done'
);
if
(
mod
(
NP_P
*
NP_KR
,
24
)
~=
0
)
disp
(
'WARNING : unused cores (ntot cores must be a 24 multiple)'
);
end
\ No newline at end of file
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