Skip to content

Commit

Permalink
Add hash code to the printed message
Browse files Browse the repository at this point in the history
  • Loading branch information
femparadmin committed Oct 22, 2015
1 parent 3a21748 commit 1b8409d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/lib/ParameterListEntry.f90
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ subroutine ParameterListEntry_Print(this, unit, prefix, iostat, iomsg)
select type (Node)
class is (ParameterListEntry_t)
do while(Node%HasKey())
write(unit=unit,fmt='(A,$)',iostat=iostatd,iomsg=iomsgd)prefd//' Key = '//Node%GetKey()//', '
write(unit=unit,fmt='(A,$)',iostat=iostatd,iomsg=iomsgd)prefd//' Key = "'//Node%GetKey()//'", '
call Node%Value%Print(unit=unit)
if (Node%HasNext()) then
Next => Node%GetNext()
Expand Down
12 changes: 5 additions & 7 deletions src/lib/ParameterListEntryContainer.f90
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ subroutine ParameterListEntryContainer_Set1D(this,Key,Value)
WrapperFactory => this%WrapperFactoryList%GetFactory(Value=Value)
if(associated(WrapperFactory)) call WrapperFactory%Wrap(Value=Value, Wrapper=Wrapper)
if(allocated(Wrapper)) then
call Wrapper%Print(unit=6)
call this%DataBase(this%Hash(Key=Key))%AddNode(Key=Key,Value=Wrapper)
call Wrapper%Free()
deallocate(Wrapper)
Expand Down Expand Up @@ -308,7 +307,6 @@ subroutine ParameterListEntryContainer_Get0D(this,Key,Value)
type is (ParameterListEntry_t)
call Node%GetValue(Value=Wrapper)
if(allocated(Wrapper)) then
call Wrapper%Print(unit=6)
WrapperFactory => this%WrapperFactoryList%GetFactory(Value=Value)
if(associated(WrapperFactory)) call WrapperFactory%UnWrap(Wrapper=Wrapper, Value=Value)
endif
Expand All @@ -334,7 +332,6 @@ subroutine ParameterListEntryContainer_Get1D(this,Key,Value)
type is (ParameterListEntry_t)
call Node%GetValue(Value=Wrapper)
if(allocated(Wrapper)) then
call Wrapper%Print(unit=6)
WrapperFactory => this%WrapperFactoryList%GetFactory(Value=Value)
if(associated(WrapperFactory)) call WrapperFactory%UnWrap(Wrapper=Wrapper, Value=Value)
endif
Expand Down Expand Up @@ -399,12 +396,13 @@ subroutine ParameterListEntryContainer_Print(this, unit, prefix, iostat, iomsg)
integer(I4P) :: DBIter !< Database iterator
!-----------------------------------------------------------------
prefd = '' ; if (present(prefix)) prefd = prefix
write(*,fmt='(A)') prefd//' LINKED LIST KEYS:'
write(*,fmt='(A)') prefd//' PARAMETER LIST CONTENT:'
write(*,fmt='(A)') prefd//' -----------------------'
if (allocated(this%DataBase)) then
write(*,fmt='(A)') prefd//' PARAMETER LIST CONTENT:'
write(*,fmt='(A)') prefd//' -----------------------'
do DBIter=lbound(this%DataBase,dim=1), ubound(this%DataBase,dim=1)
call this%DataBase(DBIter)%print(unit=unit, prefix=prefd//" ",iostat=iostatd,iomsg=iomsgd)
call this%DataBase(DBIter)%Print(unit=unit, &
prefix=prefd//' ['//trim(str(no_sign=.true., n=DBIter))//'] ', &
iostat=iostatd,iomsg=iomsgd)
enddo
endif
if (present(iostat)) iostat = iostatd
Expand Down

0 comments on commit 1b8409d

Please sign in to comment.