get_array_from_lala_cmplx Subroutine

public subroutine get_array_from_lala_cmplx(varname, out, ierr)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: varname
complex, intent(out), allocatable :: out(:,:)
integer, intent(out) :: ierr

Contents


Variables

Type Visibility Attributes Name Initial
doubleprecision, public, allocatable :: double(:,:)
doubleprecision, public, allocatable :: doublei(:,:)

Source Code

subroutine get_array_from_lala_cmplx(varname,out,ierr)
character(len=*),intent(in)      :: varname
complex,allocatable,intent(out)  :: out(:,:)
doubleprecision,allocatable      :: double(:,:), doublei(:,:)
integer,intent(out)              :: ierr
   if(allocated(out))deallocate(out)
   call get_double_from_lala(varname,double,type=0,ierr=ierr)
   call get_double_from_lala(varname,doublei,type=1,ierr=ierr)
   if(ierr.ne.0)return
   out=cmplx(double,doublei,kind=sp)
end subroutine get_array_from_lala_cmplx