splotA5_RC Subroutine

subroutine splotA5_RC(pname, X, Y1, append)

Arguments

Type IntentOptional Attributes Name
character(len=*) :: pname
real(kind=8), dimension(size(Y1,5)) :: X
complex(kind=8), dimension(:,:,:,:,:) :: Y1
logical, optional :: append

Calls

proc~~splota5_rc~2~~CallsGraph proc~splota5_rc~2 splotA5_RC dimag dimag proc~splota5_rc~2->dimag free_unit free_unit proc~splota5_rc~2->free_unit reg reg proc~splota5_rc~2->reg

Source Code

subroutine splotA5_RC(pname,X,Y1,append)
  integer                         :: Ny1,Ny2,Ny3,Ny4,Ny5
  integer                         :: i1,i2,i3,i4,i5
  character(len=*)                :: pname
  complex(8),dimension(:,:,:,:,:) :: Y1
  real(8),dimension(size(Y1,5))   :: X
  logical,optional                :: append
  logical                         :: check,append_
  append_=.false.;if(present(append))append_=append
  if(append_)then
     inquire(file=reg(pname),exist=check)
     open(free_unit(unit),file=reg(pname),position="append")
     if(check)write(unit,*)
  else
     open(free_unit(unit),file=reg(pname))
  endif
  !
  !
  Ny1=size(Y1,1)
  Ny2=size(Y1,2)
  Ny3=size(Y1,3)
  Ny4=size(Y1,4)
  Ny5=size(Y1,5)
  !
  do i1=1,Ny1
     do i2=1,Ny2
        do i3=1,Ny3
           do i4=1,Ny4
              do i5=1,Ny5
                 write(unit,*)X(i5),dimag(Y1(i1,i2,i3,i4,i5)),dreal(Y1(i1,i2,i3,i4,i5))
              enddo
              write(unit,*)""
           enddo
        enddo
     enddo
  enddo
  close(unit)
end subroutine splotA5_RC