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
9f79de85
Commit
9f79de85
authored
4 years ago
by
Antoine Cyril David Hoffmann
Browse files
Options
Downloads
Patches
Plain Diff
Script to run small tests for parallel implementation
parent
1f062a19
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
wk/test_parallel.m
+44
-0
44 additions, 0 deletions
wk/test_parallel.m
with
44 additions
and
0 deletions
wk/test_parallel.m
0 → 100644
+
44
−
0
View file @
9f79de85
clear
all
;
addpath
(
genpath
(
'../matlab'
))
% ... add
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Set Up parameters
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% PHYSICAL PARAMETERS
NU
=
1e-2
;
% Collision frequency
TAU
=
1.0
;
% e/i temperature ratio
ETAB
=
0.5
;
% Magnetic gradient
ETAN
=
1.0
;
% Density gradient
ETAT
=
0.0
;
% Temperature gradient
MU
=
5e-6
;
% Hyper diffusivity coefficient
NOISE0
=
1.0e-5
;
%% GRID PARAMETERS
N
=
256
;
% Frequency gridpoints (Nkr = N/2)
L
=
66
;
% Size of the squared frequency domain
PMAXE
=
3
;
% Highest electron Hermite polynomial degree
JMAXE
=
2
;
% Highest '' Laguerre ''
PMAXI
=
3
;
% Highest ion Hermite polynomial degree
JMAXI
=
2
;
% Highest '' Laguerre ''
%% TIME PARAMETERS
TMAX
=
400
;
% Maximal time unit
DT
=
1e-2
;
% Time step
SPS0D
=
2
;
% Sampling per time unit for profiler
SPS2D
=
2
;
% Sampling per time unit for 2D arrays
SPS5D
=
0.5
;
% Sampling per time unit for 5D arrays
RESTART
=
0
;
% To restart from last checkpoint
JOB2LOAD
=
0
;
%% OPTIONS
SIMID
=
'test_parallel'
;
% Name of the simulation
CO
=
-
2
;
% Collision operator (0 : L.Bernstein, -1 : Full Coulomb, -2 : Dougherty)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% unused
KR0KH
=
0
;
A0KH
=
0
;
% Background phi mode to drive Ray-Tay inst.
NO_E
=
0
;
% Remove electrons dynamic
% DK = 0; % Drift kinetic model (put every kernel_n to 0 except n=0 to 1)
KREQ0
=
0
;
% put kr = 0
KPAR
=
0.0
;
% Parellel wave vector component
LAMBDAD
=
0.0
;
NON_LIN
=
1
*
(
1
-
KREQ0
);
% activate non-linearity (is cancelled if KREQ0 = 1)
CANCEL_ODD_P
=
0
;
% Cancels the odd polynomials degree
setup
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