Skip to content

Commit

Permalink
230908.100959.HKT remove unwanted writings
Browse files Browse the repository at this point in the history
  • Loading branch information
zaikunzhang committed Sep 8, 2023
1 parent 125a5c5 commit eb3d198
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 47 deletions.
4 changes: 1 addition & 3 deletions fortran/lincoa/getact.f90
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module getact_mod
!
! Started: February 2022
!
! Last Modified: Thursday, September 07, 2023 PM12:01:27
! Last Modified: Friday, September 08, 2023 AM10:09:46
!--------------------------------------------------------------------------------------------------!

implicit none
Expand Down Expand Up @@ -392,8 +392,6 @@ subroutine getact(amat, delta, g, iact, nact, qfac, resact, resnew, rfac, psd)
call assert(all(is_finite(psd)) .or. nact == 0, 'PSD is finite unless NACT == 0', srname)
! In theory, ||PSD||^2 <= GG and -GG <= PSD^T*G <= 0.
! N.B. 1. Do not use DD, which may not be up to date. 2. PSD^T*G can be NaN if G is huge.
write (*, *) 'GG = ', GG, 'PSD*PSD = ', inprod(psd, psd), 'PSD*G = ', inprod(psd, g)
write (*, *) 'PSD = ', psd
call assert(inprod(psd, psd) <= TWO * gg, '||PSD||^2 <= 2*GG', srname)
call assert(.not. (inprod(psd, g) > 1.0E2_RP * EPS * gg .or. inprod(psd, g) < -TWO * gg), '-2*GG <= PSD^T*G <= 0', srname)
end if
Expand Down
44 changes: 0 additions & 44 deletions fortran/tests/testsuite/freeform.m

This file was deleted.

2 changes: 2 additions & 0 deletions matlab/setup_tools/freeform.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ function freeform(files)
files = {listing.name};
elseif ischarstr(files)
files = {files};
else
error('Invalid input.')
end

for ifile = 1 : length(files)
Expand Down

0 comments on commit eb3d198

Please sign in to comment.