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
1af2b25b
Commit
1af2b25b
authored
1 year ago
by
Antoine Cyril David Hoffmann
Browse files
Options
Downloads
Patches
Plain Diff
saving
parent
f71fde26
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/lin_run_script.m
+17
-15
17 additions, 15 deletions
wk/lin_run_script.m
with
17 additions
and
15 deletions
wk/lin_run_script.m
+
17
−
15
View file @
1af2b25b
...
...
@@ -6,8 +6,8 @@
%% Set up the paths for the necessary Matlab modules
gyacomodir
=
pwd
;
gyacomodir
=
gyacomodir
(
1
:
end
-
2
);
mpirun
=
'mpirun'
;
%
mpirun = '/opt/homebrew/bin/mpirun'; % for macos
%
mpirun = 'mpirun';
mpirun
=
'/opt/homebrew/bin/mpirun'
;
% for macos
addpath
(
genpath
([
gyacomodir
,
'matlab'
]))
% Add matlab folder
addpath
(
genpath
([
gyacomodir
,
'matlab/plot'
]))
% Add plot folder
addpath
(
genpath
([
gyacomodir
,
'matlab/compute'
]))
% Add compute folder
...
...
@@ -21,22 +21,24 @@ EXECNAME = 'gyacomo23_sp'; % single precision
% EXECNAME = 'gyacomo23_dp'; % double precision
%% Setup parameters
% run lin_DTT_AB_rho85
% run lin_DTT_AB_rho98
run
lin_JET_rho97
% run lin_DTT_HM_rho85
% run lin_DTT_HM_rho98
% run lin_DTT_LM_rho90
run
lin_DTT_LM_rho95
% run lin_JET_rho97
% run lin_Entropy
% run lin_ITG
%% Change parameters
NY
=
2
;
PMAX
=
4
;
JMAX
=
2
;
ky
=
1
0
.0
;
JMAX
=
PMAX
/
2
;
ky
=
1.0
;
LY
=
2
*
pi
/
ky
;
DT
=
1e-
3
/
ky
;
SIGMA_E
=
0.0
23
;
TMAX
=
1
.5
/
ky
;
DTSAVE0D
=
0.01
;
DTSAVE3D
=
0.01
;
DT
=
1e-
5
;
%
SIGMA_E = 0.0
4
;
TMAX
=
1
0
;
DTSAVE0D
=
200
*
DT
;
DTSAVE3D
=
TMAX
/
50
;
%%-------------------------------------------------------------------------
%% RUN
setup
...
...
@@ -44,9 +46,9 @@ setup
% Run linear simulation
if
RUN
MVIN
=
[
'cd ../results/'
,
SIMID
,
'/'
,
PARAMS
,
'/;'
];
RUN
=
[
'time '
,
mpirun
,
' -np 2 '
,
gyacomodir
,
'bin/'
,
EXECNAME
,
' 1 2 1 0;'
];
%
RUN =['time ',mpirun,' -np 4 ',gyacomodir,'bin/',EXECNAME,' 1 2 2 0;'];
% RUN =['time ',mpirun,' -np 8 ',gyacomodir,'bin/',EXECNAME,'
1 4
2 0;'];
%
RUN =['time ',mpirun,' -np 2 ',gyacomodir,'bin/',EXECNAME,' 1 2 1 0;'];
RUN
=
[
'time '
,
mpirun
,
' -np 4 '
,
gyacomodir
,
'bin/'
,
EXECNAME
,
' 1 2 2 0;'
];
% RUN =['time ',mpirun,' -np 8 ',gyacomodir,'bin/',EXECNAME,'
2 2
2 0;'];
% RUN =['time ',mpirun,' -np 1 ',gyacomodir,'bin/',EXECNAME,' 1 1 1 0;'];
% RUN = ['./../../../bin/gyacomo23_sp 0;'];
MVOUT
=
'cd ../../../wk;'
;
...
...
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