!-----------------------------------------------------------------------------
subroutine read_dist_constr
use MPI_data
!-----------------------------------------------------------------------------
subroutine read_dist_constr
use MPI_data
if(.not.allocated(dhpb1)) allocate(dhpb1(maxdim))
if(.not.allocated(forcon)) allocate(forcon(maxdim))
if(.not.allocated(fordepth)) allocate(fordepth(maxdim))
if(.not.allocated(dhpb1)) allocate(dhpb1(maxdim))
if(.not.allocated(forcon)) allocate(forcon(maxdim))
if(.not.allocated(fordepth)) allocate(fordepth(maxdim))
if (constr_dist.eq.11) then
read (inp,*) ihpb(nhpb+1),jhpb(nhpb+1),dhpb(i),dhpb1(i), &
ibecarb(i),forcon(nhpb+1),fordepth(nhpb+1)
if (constr_dist.eq.11) then
read (inp,*) ihpb(nhpb+1),jhpb(nhpb+1),dhpb(i),dhpb1(i), &
ibecarb(i),forcon(nhpb+1),fordepth(nhpb+1)
else
!C print *,"in else"
read (inp,*) ihpb(nhpb+1),jhpb(nhpb+1),dhpb(i),dhpb1(i), &
else
!C print *,"in else"
read (inp,*) ihpb(nhpb+1),jhpb(nhpb+1),dhpb(i),dhpb1(i), &