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
057798b7
Commit
057798b7
authored
2 years ago
by
Antoine Cyril David Hoffmann
Browse files
Options
Downloads
Patches
Plain Diff
Error stop if the collision matrix does not fit
parent
90496ed7
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
src/collision_mod.F90
+5
-5
5 additions, 5 deletions
src/collision_mod.F90
with
5 additions
and
5 deletions
src/collision_mod.F90
+
5
−
5
View file @
057798b7
...
...
@@ -95,7 +95,7 @@ CONTAINS
TColl_e
=
0._dp
TColl_i
=
0._dp
CASE
DEFAULT
ERROR STOP
'
Error stop:
collision operator not recognized!!'
ERROR STOP
'
>> ERROR <<
collision operator not recognized!!'
END
SELECT
ELSE
IF
(
KIN_E
)
&
...
...
@@ -682,8 +682,8 @@ CONTAINS
pdime
=
dims_e
(
1
);
jdime
=
dims_e
(
2
);
CALL
getarr
(
fid
,
'/dims_i'
,
dims_i
)
! Get the ion polynomial degrees
pdimi
=
dims_i
(
1
);
jdimi
=
dims_i
(
2
);
IF
(
((
pdime
.LT.
pmaxe
)
.OR.
(
jdime
.LT.
jmaxe
))
.AND.
(
my_id
.EQ.
0
))
WRITE
(
*
,
*
)
'!!
Pe,Je Matrix too small
!!
'
IF
(
((
pdimi
.LT.
pmaxi
)
.OR.
(
jdimi
.LT.
jmaxi
))
.AND.
(
my_id
.EQ.
0
))
WRITE
(
*
,
*
)
'!!
Pi,Ji Matrix too small
!!
'
IF
(
((
pdime
.LT.
pmaxe
)
.OR.
(
jdime
.LT.
jmaxe
))
.AND.
(
my_id
.EQ.
0
))
ERROR STOP
'>> ERROR <<
Pe,Je Matrix too small'
IF
(
((
pdimi
.LT.
pmaxi
)
.OR.
(
jdimi
.LT.
jmaxi
))
.AND.
(
my_id
.EQ.
0
))
ERROR STOP
'>> ERROR <<
Pi,Ji Matrix too small'
CALL
getsize
(
fid
,
'/coordkperp'
,
nkp_mat
)
! Get the dimension kperp grid of the matrices
CALL
allocate_array
(
kp_grid_mat
,
1
,
nkp_mat
)
...
...
@@ -692,9 +692,9 @@ CONTAINS
kp_max
=
SQRT
(
kx_max
**
2
+
ky_max
**
2
)
! check that we have enough kperps mat
IF
(
LINEARITY
.NE.
'linear'
)
THEN
IF
(
(
kp_grid_mat
(
nkp_mat
)
.LT.
2.
/
3.
*
kp_max
)
.AND.
(
my_id
.EQ.
0
))
WRITE
(
*
,
*
)
'
!!
Matrix kperp grid too small
!!
'
IF
(
(
kp_grid_mat
(
nkp_mat
)
.LT.
2.
/
3.
*
kp_max
)
.AND.
(
my_id
.EQ.
0
))
WRITE
(
*
,
*
)
'
warning:
Matrix kperp grid too small'
ELSE
IF
(
(
kp_grid_mat
(
nkp_mat
)
.LT.
kp_max
)
.AND.
(
my_id
.EQ.
0
))
WRITE
(
*
,
*
)
'
!!
Matrix kperp grid too small !!'
IF
(
(
kp_grid_mat
(
nkp_mat
)
.LT.
kp_max
)
.AND.
(
my_id
.EQ.
0
))
WRITE
(
*
,
*
)
'
warning:
Matrix kperp grid too small !!'
ENDIF
IF
(
gyrokin_CO
)
THEN
! GK operator (k-dependant)
...
...
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