- Timestamp:
- 12/02/14 19:21:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
codes/icosagcm/branches/SATURN_DYNAMICO/LMDZ.COMMON/libf/phystd/iniorbit.F
r227 r298 4 4 USE planete_mod, only: apoastr, periastr, year_day, obliquit, 5 5 & peri_day, e_elips, p_elips, timeperi 6 USE mod_phys_lmdz_para, only : is_master 6 7 IMPLICIT NONE 7 8 … … 67 68 !!!! We hope that all cases are above 25 Mkm [OK with Gliese 581d] 68 69 IF ( apoastr .gt. 25.) THEN 70 IF (is_master) THEN 69 71 PRINT*,'!!!!! WARNING !!!!!' 70 72 PRINT*,'!!!!! YOU ARE ABOUT TO WITNESS A DIRT HACK !!!!!' … … 73 75 PRINT*,'So I am assuming units are in Mkm here' 74 76 PRINT*,'and I am performing a conversion towards AU.' 77 END IF 75 78 periastr = periastr / 149.598 ! Mkm to AU 76 79 apoastr = apoastr / 149.598 ! Mkm to AU … … 80 83 81 84 82 PRINT*,'Periastron in AU ',periastr83 PRINT*,'Apoastron in AU ',apoastr84 PRINT*,'Obliquity in degrees :',obliquit85 IF (is_master) PRINT*,'Periastron in AU ',periastr 86 IF (is_master) PRINT*,'Apoastron in AU ',apoastr 87 IF (is_master) PRINT*,'Obliquity in degrees :',obliquit 85 88 86 89 … … 88 91 p_elips=0.5*(periastr+apoastr)*(1-e_elips*e_elips) 89 92 90 print*,'e_elips',e_elips91 print*,'p_elips',p_elips93 IF (is_master) print*,'e_elips',e_elips 94 IF (is_master) print*,'p_elips',p_elips 92 95 93 96 c----------------------------------------------------------------------- … … 100 103 zanom=2.*pi*(zz-nint(zz)) 101 104 zxref=abs(zanom) 102 PRINT*,'zanom ',zanom105 IF (is_master) PRINT*,'zanom ',zanom 103 106 104 107 c resolution de l'equation horaire zx0 - e * sin (zx0) = zxref … … 114 117 zx0=zx0+zdx 115 118 if(zanom.lt.0.) zx0=-zx0 116 PRINT*,'zx0 ',zx0119 IF (is_master) PRINT*,'zx0 ',zx0 117 120 118 121 c zteta est la longitude solaire 119 122 120 123 timeperi=2.*atan(sqrt((1.+e_elips)/(1.-e_elips))*tan(zx0/2.)) 121 PRINT*,'Solar longitude of periastron timeperi = ',timeperi 124 IF (is_master) PRINT*,'Solar longitude of periastron', 125 & ' timeperi = ',timeperi 122 126 123 127 RETURN
Note: See TracChangeset
for help on using the changeset viewer.