Changeset 3173 for trunk/LMDZ.COMMON/libf/evolution/deftank
- Timestamp:
- Jan 9, 2024, 10:55:18 AM (13 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/libf/evolution/deftank/launch_orb_1Dchained.sh
r3149 r3173 85 85 yearlask=$(echo "$eyears_bp_ini + $i_myear*$convert_years" | bc -l) 86 86 found=false 87 while read -r y1 obl1 ecc1 lsp1 && read -r y2 obl2 ecc2 lsp2; do 88 y1=$(echo "$y1*1000" | bc -l) 89 y2=$(echo "$y2*1000" | bc -l) 87 read -r y1 obl1 ecc1 lsp1 < "$orb_data" 88 while read -r y2 obl2 ecc2 lsp2; do 89 if [ "$first_line" = true ]; then 90 first_line=false 91 continue # Skip the first line as it's already read outside the loop 92 fi 90 93 if [ "$(echo "$y1 >= $yearlask && $yearlask > $y2" | bc)" -eq 1 ]; then 91 94 found=true … … 107 110 break 108 111 fi 112 y1=$y2 113 obl1=$obl2 114 ecc1=$ecc2 115 lsp1=$lsp2 109 116 done < "$orb_data" 110 117 if [ "$found" = false ]; then
Note: See TracChangeset
for help on using the changeset viewer.