| 376 |
if(VERBOSE.EQ.1)iprint=1 |
if(VERBOSE.EQ.1)iprint=1 |
| 377 |
if(DEBUG.EQ.1)iprint=2 |
if(DEBUG.EQ.1)iprint=2 |
| 378 |
call mini2(jstep,ifail,iprint) |
call mini2(jstep,ifail,iprint) |
| 379 |
if(ifail.ne.0) then |
cc if(ifail.ne.0) then |
| 380 |
|
if(ifail.ne.0.or.CHI2.ne.CHI2) then !new |
| 381 |
|
if(CHI2.ne.CHI2)CHI2=-9999. !new |
| 382 |
if(VERBOSE.EQ.1)then |
if(VERBOSE.EQ.1)then |
| 383 |
print *, |
print *, |
| 384 |
$ '*** MINIMIZATION FAILURE *** (after refinement) ' |
$ '*** MINIMIZATION FAILURE *** (after refinement) ' |
| 385 |
$ ,iev |
$ ,iev |
|
|
|
| 386 |
endif |
endif |
| 387 |
endif |
endif |
| 388 |
|
|
| 3012 |
* ********************************************************** |
* ********************************************************** |
| 3013 |
|
|
| 3014 |
if(chi2.le.0.)goto 666 |
if(chi2.le.0.)goto 666 |
| 3015 |
|
if(chi2.ge.1.e08)goto 666 !OPTIMIZATION |
| 3016 |
|
if(chi2.ne.chi2)goto 666 !OPTIMIZATION |
| 3017 |
|
|
| 3018 |
* -------------------------- |
* -------------------------- |
| 3019 |
* STORE candidate TRACK INFO |
* STORE candidate TRACK INFO |
| 4105 |
alfayz2_av_nt(iyz)=alfayz2_av(iyz) |
alfayz2_av_nt(iyz)=alfayz2_av(iyz) |
| 4106 |
nnn=nnn+ptcloud_yz(iyz) |
nnn=nnn+ptcloud_yz(iyz) |
| 4107 |
enddo |
enddo |
| 4108 |
do ipt=1,nnn |
do ipt=1,min(ndblt_max_nt,nnn) |
| 4109 |
db_cloud_nt(ipt)=db_cloud(ipt) |
db_cloud_nt(ipt)=db_cloud(ipt) |
| 4110 |
enddo |
enddo |
| 4111 |
endif |
endif |
| 4118 |
alfaxz3_av_nt(ixz)=alfaxz3_av(ixz) |
alfaxz3_av_nt(ixz)=alfaxz3_av(ixz) |
| 4119 |
nnn=nnn+ptcloud_xz(ixz) |
nnn=nnn+ptcloud_xz(ixz) |
| 4120 |
enddo |
enddo |
| 4121 |
do ipt=1,nnn |
do ipt=1,min(ntrpt_max_nt,nnn) |
| 4122 |
tr_cloud_nt(ipt)=tr_cloud(ipt) |
tr_cloud_nt(ipt)=tr_cloud(ipt) |
| 4123 |
enddo |
enddo |
| 4124 |
endif |
endif |