Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Fixed bad mask size on fill operation
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Aug 6, 2021
1 parent 77ee9cc commit adf3f1a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Makefile.Defines
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ FFLAGS = $(IDEBUG) $(HEAPARR)
FORTRAN = ifort
#AR = xiar

FORTRAN = gfortran
FFLAGS = -ffree-line-length-none $(GDEBUG) $(GMEM)
#FORTRAN = gfortran
#FFLAGS = -ffree-line-length-none $(GDEBUG) $(GMEM)
AR = ar

# DO NOT include in CFLAGS the "-c" option to compile object only
Expand Down
7 changes: 1 addition & 6 deletions src/fragmentation/fragmentation.f90
Original file line number Diff line number Diff line change
Expand Up @@ -336,15 +336,11 @@ subroutine calculate_system_energy(linclude_fragments)
call setup_construct_system(tmpsys, param)
deallocate(tmpsys%cb)
allocate(tmpsys%cb, source=cb)
allocate(ltmp, mold=pl%ldiscard)
allocate(ltmp(npl_new))
ltmp(:) = .false.
ltmp(1:npl) = .true.
write(*,*) 'npl : ',npl
write(*,*) 'npl_new: ',npl_new
write(*,*) 'ltmp: ',ltmp
call tmpsys%pl%setup(npl_new, param)
call tmpsys%pl%fill(pl, ltmp)
deallocate(ltmp)

if (linclude_fragments) then ! Append the fragments if they are included
! Energy calculation requires the fragments to be in the system barcyentric frame, s
Expand All @@ -359,7 +355,6 @@ subroutine calculate_system_energy(linclude_fragments)
tmpsys%pl%rot(:,npl+1:npl_new) = rot_frag(:,1:nfrag)
end if
call tmpsys%pl%b2h(tmpsys%cb)
allocate(ltmp(npl_new))
ltmp(1:npl) = lexclude(1:npl)
ltmp(npl+1:npl_new) = .false.
call move_alloc(ltmp, lexclude)
Expand Down

0 comments on commit adf3f1a

Please sign in to comment.