Skip to content
Snippets Groups Projects
Commit 737a90bd authored by Paul-Gerhard Reinhard's avatar Paul-Gerhard Reinhard
Browse files

isovector external field corrected

parent 33a869db
No related branches found
No related tags found
No related merge requests found
...@@ -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
......
...@@ -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 getin_external END SUBROUTINE init_external
!*********************************************************************** !***********************************************************************
SUBROUTINE extfld(time) SUBROUTINE extfld(time)
REAL(db) :: time REAL(db) :: time
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment