mirror of https://gitlab.com/QEF/q-e.git
gfortran workaround for deallocation of newly introduced becp derived
variables. I think that all __GFORTRAN workaround are no longer needed in new versions of gfortran (4.3, maybe also 4.2): can anybody with access to several gfortran versions please verify? it is sufficient to remove -D__GFORTRAN and see what happens. The phonon code doesn't seem to work anyway, even with recent gfortran versions git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@5940 c92efa57-630b-4861-b058-cf58834340f0
This commit is contained in:
parent
79f2ca2262
commit
637e1cd92b
|
@ -97,11 +97,15 @@ subroutine deallocate_phq
|
|||
if(allocated(this_pcxpsi_is_on_file)) deallocate (this_pcxpsi_is_on_file)
|
||||
if(allocated(alphap_nc)) deallocate (alphap_nc)
|
||||
if(allocated(becp1_nc)) deallocate(becp1_nc)
|
||||
if(allocated(becp%nc)) deallocate(becp%nc)
|
||||
|
||||
#ifdef __GFORTRAN
|
||||
IF ( ASSOCIATED(becp%nc) ) DEALLOCATE (becp%nc)
|
||||
IF ( ASSOCIATED(becp%k ) ) DEALLOCATE (becp%k )
|
||||
#else
|
||||
IF ( ALLOCATED (becp%nc) ) DEALLOCATE (becp%nc)
|
||||
IF ( ALLOCATED (becp%k ) ) DEALLOCATE (becp%k )
|
||||
#endif
|
||||
if(allocated(alphap)) deallocate (alphap)
|
||||
if(allocated(becp1)) deallocate(becp1)
|
||||
if(allocated(becp%k)) deallocate(becp%k)
|
||||
if(allocated(el_ph_mat)) deallocate (el_ph_mat)
|
||||
if(allocated(m_loc)) deallocate(m_loc)
|
||||
|
||||
|
|
Loading…
Reference in New Issue