Skip to content

Commit

Permalink
Removed bug: G = 0 was not defined in the subroutine called input_field
Browse files Browse the repository at this point in the history
src/field_io_mod
  • Loading branch information
akasharora123 committed Apr 16, 2016
1 parent 6f3716b commit 1393605
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/io/field_io_mod.f
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ subroutine input_field(field,field_unit)
real(long) :: swap(N_monomer)
type(version_type) :: version

G = 0
! Input file format version (e.g., `format 1 0')
call input_version(version, field_unit)
Expand All @@ -80,6 +81,7 @@ subroutine input_field(field,field_unit)
end if
end do
end subroutine input_field
!==============================================================
Expand Down Expand Up @@ -122,6 +124,7 @@ subroutine output_field(field,field_unit,group_name,N_basis_out)
call output(N_monomer,'N_monomer',o=field_unit)
call output(N_output,'N_star',o=field_unit)
fmt = '('//trim(int_string(N_monomer))//'ES20.12,4X,'
fmt = trim(fmt)//trim(int_string(dim))//'I4,I6'//')'
do i = 1, N_output
Expand Down
2 changes: 1 addition & 1 deletion src/pscf_pd.fp.f
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,7 @@ program pscf_pd
open(unit=field_unit,file=trim(input_file),status='old')
call input_field(rho,field_unit)
close(field_unit)

do alpha=1,N_monomer
do i=1,N_star
omega_basis(alpha,i) = sum(chi(:,alpha)*rho(:,i))
Expand Down

0 comments on commit 1393605

Please sign in to comment.