Commit e8f51bc4 authored by Daniel Wortmann's avatar Daniel Wortmann

Changes to t_mpimat initializations

parent 3e68dc4c
......@@ -76,12 +76,12 @@ CONTAINS
abstol=2.0*CPP_LAPACK_slamch('S') ! PDLAMCH gave an error on ZAMpano
CALL ev_dist%init(hmat%l_real,hmat%global_size1,hmat%global_size2,hmat%mpi_com,.TRUE.)
CALL ev_dist%init(hmat)
!smat%blacs_desc(2) = hmat%blacs_desc(2)
!ev_dist%blacs_desc(2) = hmat%blacs_desc(2)
smat%blacs_desc=hmat%blacs_desc
ev_dist%blacs_desc=hmat%blacs_desc
!smat%blacs_desc=hmat%blacs_desc
!ev_dist%blacs_desc=hmat%blacs_desc
nb=hmat%blacs_desc(5)! Blocking factor
......
......@@ -305,8 +305,10 @@ CONTAINS
mat%nprow=templ%nprow
IF (mat%l_real) THEN
ALLOCATE(mat%data_r(mat%matsize1,mat%matsize2))
ALLOCATE(mat%data_c(0,0))
ELSE
ALLOCATE(mat%data_c(mat%matsize1,mat%matsize2))
ALLOCATE(mat%data_r(0,0))
END IF
CLASS default
CALL judft_error("Mixed initialization in t_mpimat not possible(BUG)")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment