Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
Sky3D
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Stevenson, Paul Prof (Maths & Physics)
Sky3D
Commits
737a90bd
Commit
737a90bd
authored
9 years ago
by
Paul-Gerhard Reinhard
Browse files
Options
Downloads
Patches
Plain Diff
isovector external field corrected
parent
33a869db
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
Code/dynamic.f90
+1
-0
1 addition, 0 deletions
Code/dynamic.f90
Code/external.f90
+7
-4
7 additions, 4 deletions
Code/external.f90
with
8 additions
and
4 deletions
Code/dynamic.f90
+
1
−
0
View file @
737a90bd
...
@@ -51,6 +51,7 @@ CONTAINS
...
@@ -51,6 +51,7 @@ CONTAINS
END
IF
END
IF
! external boost
! external boost
IF
(
texternal
)
THEN
IF
(
texternal
)
THEN
CALL
init_external
CALL
extboost
(
text_timedep
)
CALL
extboost
(
text_timedep
)
END
IF
END
IF
! Create protocol files
! Create protocol files
...
...
This diff is collapsed.
Click to expand it.
Code/external.f90
+
7
−
4
View file @
737a90bd
...
@@ -14,13 +14,15 @@ MODULE External
...
@@ -14,13 +14,15 @@ MODULE External
CONTAINS
CONTAINS
!***********************************************************************
!***********************************************************************
SUBROUTINE
getin_external
SUBROUTINE
getin_external
NAMELIST
/
extern
/
amplq0
,
radext
,
widext
,
isoext
,
ipulse
,
omega
,
tau0
,
taut
,
&
textfield_periodic
READ
(
5
,
extern
)
END
SUBROUTINE
getin_external
SUBROUTINE
init_external
REAL
(
db
)
::
facn
,
facp
,
facr
,
xlim
,
ylim
,
zlim
REAL
(
db
)
::
facn
,
facp
,
facr
,
xlim
,
ylim
,
zlim
INTEGER
::
ix
,
iy
,
iz
INTEGER
::
ix
,
iy
,
iz
CHARACTER
(
14
),
PARAMETER
::
pulsetype
(
0
:
2
)
=
(/
'Instantaneous '
,
&
CHARACTER
(
14
),
PARAMETER
::
pulsetype
(
0
:
2
)
=
(/
'Instantaneous '
,
&
'Gaussian '
,
'Cosine squared'
/)
'Gaussian '
,
'Cosine squared'
/)
NAMELIST
/
extern
/
amplq0
,
radext
,
widext
,
isoext
,
ipulse
,
omega
,
tau0
,
taut
,
&
textfield_periodic
READ
(
5
,
extern
)
IF
(
ipulse
<
0.
OR
.
ipulse
>
2
)
STOP
&
IF
(
ipulse
<
0.
OR
.
ipulse
>
2
)
STOP
&
' External field: called with invalid pulse type'
' External field: called with invalid pulse type'
IF
(
wflag
)
THEN
IF
(
wflag
)
THEN
...
@@ -49,6 +51,7 @@ CONTAINS
...
@@ -49,6 +51,7 @@ CONTAINS
facn
=
-1.0D0
/(
mass_number
-
charge_number
)
facn
=
-1.0D0
/(
mass_number
-
charge_number
)
facp
=
1.0D0
/
charge_number
facp
=
1.0D0
/
charge_number
ENDIF
ENDIF
WRITE
(
*
,
*
)
'EXTERNAL: '
,
facn
,
facp
ALLOCATE
(
extfield
(
nx
,
ny
,
nz
,
2
))
ALLOCATE
(
extfield
(
nx
,
ny
,
nz
,
2
))
xlim
=
nx
*
dx
xlim
=
nx
*
dx
ylim
=
ny
*
dy
ylim
=
ny
*
dy
...
@@ -68,7 +71,7 @@ CONTAINS
...
@@ -68,7 +71,7 @@ CONTAINS
ENDDO
ENDDO
ENDDO
ENDDO
ENDDO
ENDDO
END
SUBROUTINE
get
in_external
END
SUBROUTINE
in
it
_external
!***********************************************************************
!***********************************************************************
SUBROUTINE
extfld
(
time
)
SUBROUTINE
extfld
(
time
)
REAL
(
db
)
::
time
REAL
(
db
)
::
time
...
...
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