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
27da1dc8
Commit
27da1dc8
authored
2 years ago
by
Antoine Cyril David Hoffmann
Browse files
Options
Downloads
Patches
Plain Diff
small feature to spit the ES field at the current time in txt file
parent
28ead18a
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/diagnose.F90
+39
-4
39 additions, 4 deletions
src/diagnose.F90
with
39 additions
and
4 deletions
src/diagnose.F90
+
39
−
4
View file @
27da1dc8
...
@@ -296,14 +296,17 @@ SUBROUTINE diagnose_full(kstep)
...
@@ -296,14 +296,17 @@ SUBROUTINE diagnose_full(kstep)
! empty in our case
! empty in our case
! 2.3
2
d profiles
! 2.3
3
d profiles
IF
(
nsave_3d
.GT.
0
)
THEN
IF
(
nsave_3d
.GT.
0
)
THEN
IF
(
MOD
(
cstep
,
nsave_3d
)
==
0
)
THEN
IF
(
MOD
(
cstep
,
nsave_3d
)
==
0
)
THEN
CALL
diagnose_3d
CALL
diagnose_3d
END
IF
! Looks at the folder if the file check_phi exists and spits a snapshot
END
IF
! of the current electrostatic potential in a basic text file
CALL
spit_snapshot_check
ENDIF
ENDIF
! 2.4
3
d profiles
! 2.4
5
d profiles
IF
(
nsave_5d
.GT.
0
.AND.
cstep
.GT.
0
)
THEN
IF
(
nsave_5d
.GT.
0
.AND.
cstep
.GT.
0
)
THEN
IF
(
MOD
(
cstep
,
nsave_5d
)
==
0
)
THEN
IF
(
MOD
(
cstep
,
nsave_5d
)
==
0
)
THEN
CALL
diagnose_5d
CALL
diagnose_5d
...
@@ -609,3 +612,35 @@ SUBROUTINE diagnose_5d
...
@@ -609,3 +612,35 @@ SUBROUTINE diagnose_5d
END
SUBROUTINE
write_field5d_i
END
SUBROUTINE
write_field5d_i
END
SUBROUTINE
diagnose_5d
END
SUBROUTINE
diagnose_5d
SUBROUTINE
spit_snapshot_check
USE
fields
,
ONLY
:
phi
USE
grid
,
ONLY
:
ikxs
,
ikxe
,
Nkx
,
ikys
,
ikye
,
Nky
,
izs
,
ize
,
Nz
USE
parallel
,
ONLY
:
gather_xyz
USE
basic
IMPLICIT
NONE
LOGICAL
::
file_exist
INTEGER
::
fid_check
,
ikx
,
iky
,
iz
CHARACTER
(
256
)
::
check_filename
COMPLEX
(
dp
),
DIMENSION
(
1
:
Nky
,
1
:
Nkx
,
1
:
Nz
)
::
field_to_check
!! Spit a snapshot of PHI if requested (triggered by creating a file named "check_phi")
INQUIRE
(
file
=
'check_phi'
,
exist
=
file_exist
)
IF
(
file_exist
)
THEN
IF
(
my_id
.EQ.
0
)
WRITE
(
*
,
*
)
'Check file found -> gather phi..'
CALL
gather_xyz
(
phi
(
ikys
:
ikye
,
ikxs
:
ikxe
,
izs
:
ize
),
field_to_check
)
IF
(
my_id
.EQ.
0
)
THEN
WRITE
(
check_filename
,
'(a16)'
)
'check_phi.out'
OPEN
(
fid_check
,
file
=
check_filename
,
form
=
'formatted'
)
WRITE
(
*
,
*
)
'Check file found -> output phi ..'
WRITE
(
fid_check
,
*
)
Nky
,
Nkx
,
Nz
DO
iky
=
1
,
Nky
;
DO
ikx
=
1
,
Nkx
;
DO
iz
=
1
,
Nz
WRITE
(
fid_check
,
*
)
real
(
field_to_check
(
iky
,
ikx
,
iz
)),
','
,
imag
(
field_to_check
(
iky
,
ikx
,
iz
))
ENDDO
;
ENDDO
;
ENDDO
CLOSE
(
fid_check
)
WRITE
(
*
,
*
)
'Check file found -> done.'
! delete the check_phi flagfile
OPEN
(
fid_check
,
file
=
'check_phi'
)
CLOSE
(
fid_check
,
status
=
'delete'
)
ENDIF
ENDIF
END
SUBROUTINE
spit_snapshot_check
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