Abrir - RDU
Abrir - RDU
Abrir - RDU
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Apéndices 297<br />
enddo<br />
y(2)=funk(zx)<br />
do i=1,4<br />
zx(i)=p2(i)<br />
enddo<br />
y(3)=funk(zx)<br />
do i=1,4<br />
zx(i)=p3(i)<br />
enddo<br />
y(4)=funk(zx)<br />
do i=1,4<br />
zx(i)=p4(i)<br />
enddo<br />
y(5)=funk(zx)<br />
write(*,*) ”Starting chicuad values =”<br />
write(*,*) y(1),y(2),y(3),y(4),y(5)<br />
write(52,*) ”Starting chicuad values =”<br />
write(52,*) y(1),y(2),y(3),y(4),y(5)<br />
!llamada a la subrutina downhill para obtener el minimo<br />
de chicuad...<br />
write(*,*)<br />
write(*,*) ”Entering downhill iteration...”<br />
write(52,*)<br />
write(52,*) ”Entering downhill iteration...”<br />
ftol=0.0005<br />
call amoeba(p,y,5,4,4,ftol,funk,iter)<br />
write(*,*)<br />
write(*,*) ”Downhill convergence before ”,iter,”steps.”<br />
write(52,*) ”Final solution: Teff logg [Fe/H] xita (vrot<br />
vrad)”<br />
write(52,*) p(1,1),p(1,2),p(1,3),p(1,4),”(”,vrot,vrad,”)”<br />
write(52,*)<br />
write(52,*) ”Downhill convergence before ”,iter,”steps.”<br />
write(52,*) ”Final solution: Teff logg [Fe/H] xita (vrot<br />
vrad)”<br />
write(52,*) p(1,1),p(1,2),p(1,3),p(1,4),”(”,vrot,vrad,”)”<br />
write(50,123) file,p(1,1),p(1,2),p(1,3),p(1,4),<br />
+vrot,vrad,”(”,teff0,logg0,feh0,xita0,”)”<br />
123 format(a30,6f10.2,2x,a1,4f10.2,a1)<br />
do i=1,4 !vuelve a llamar funk p escrbir el arch.salida<br />
zx(i)=p(1,i)<br />
enddo<br />
wspec=1<br />
chicuad=funk(zx) !...aqui es dde lo escribe<br />
end<br />
!***********************************************<br />
subroutine force1(mint,minl,minf,minx)<br />
real t1,l1,f1,x1<br />
real ex,oldt1<br />
real min,mint,minl,minf,minx<br />
real*8 spec3(2e5),chicuad,vrot1<br />
character fname1*31,fname2*51,path*12,dir*8<br />
character*31 munari(68200),a20(2e5)*20<br />
common /comunes/<br />
spec2,lam13,vrot,points,ndesder13,nhastar13,<br />
np1,wspec,file<br />
real*8 spec2(2e5),lam13(2e5),vrot,vrad<br />
integer points<br />
integer ndesder13,nhastar13,np1,wspec<br />
character file*80<br />
save /comunes/<br />
!lee nombre archivos de la grilla<br />
open(3,file=”munari.filenames.txt”,status=. o ld”)<br />
i=1<br />
do<br />
read(3,’(a31)’,end=240) munari(i)<br />
i=i+1<br />
enddo<br />
240close(3)<br />
!el bucle principal<br />
write(*,*) ”Writting some examples of grid chicuad-values...”<br />
write(*,*) ”teff logg feh xita vsini –¿chicuad”<br />
write(52,*) ”Writting some examples of grid chicuad-values...”<br />
write(52,*) ”teff logg feh xita vsini –¿chicuad”<br />
min=1e7<br />
oldt1=0<br />
do t1=3500,40000,250<br />
do l1=0,5,0.5<br />
do f1=-2.5,0.5, 0.5<br />
x1=2.<br />
call vrotx(t1,vrot,vrot1)<br />
call concat1(t1,l1,f1,vrot1,x1,”S”,fname1,dir)<br />
path=/dos/munari/”<br />
fname2=path//dir//fname1<br />
!se fija si existe el nombre del archivo<br />
ex=0<br />
do i=1,68200<br />
if (fname1.eq.munari(i)) then<br />
ex=1<br />
exit<br />
endif<br />
enddo<br />
if (ex.eq.0) then<br />
cycle<br />
endif<br />
open(46,file=fname2,status=. o ld”)<br />
do i=1,np1-1<br />
read(46,’(a20)’) a20(i)