Changeset 2638
- Timestamp:
- Nov 23, 2017 12:44:23 PM (7 years ago)
- Location:
- palm/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/palmrun
r2610 r2638 535 535 # LINE DEFINES FILE CONNECTION. READ THE FILE ATTRIBUTES. 536 536 # s2a: in/out - field 537 # s2b: loc - field (optional) 538 # s2c: tr/ar - field (optional) 537 # s2b: action - field (optional) 539 538 s1=`echo $line | cut -d" " -f1` 540 539 s2=`echo $line | cut -d" " -s -f2` 541 s2a=$(echo $s2 | cut -d":" -f1)540 # s2a=$(echo $s2 | cut -d":" -f1) 542 541 if [[ $(echo $s2 | grep -c ":") = 0 ]] 543 542 then 543 s2a=$s2 544 544 s2b="" 545 s2c=""546 545 else 547 s2 b=`echo $s2 | cut -d":" -f2 | sed 's/:/ /g'`548 s2 c=`echo $s2 | cut -d":" -s -f3 | sed 's/:/ /g'`546 s2a=`echo $s2 | cut -d":" -f1` 547 s2b=`echo $s2 | cut -d":" -f2` 549 548 fi 550 549 s3=`echo $line | cut -d" " -f3` … … 558 557 # VARIABLE S3 MAY CONTAIN A LIST OF ACTIVATION STRINGS (FIELD-SEPERATOR ":"). 559 558 # IF EXECUTION IS SCHEDULED FOR A REMOTE-MACHINE AND THE FILE IS ONLY 560 # LOCALLY REQUIRED ON THAT MACHINE (I.E. s2b = loc), THE FILE CONNECTION559 # LOCALLY REQUIRED ON THAT MACHINE (I.E. s2b != tr), THE FILE CONNECTION 561 560 # IS NOT CHECKED AND STORED. 562 561 IFSALT="$IFS"; IFS="$IFS:" # ADD ":" AS FIELD SEPARATOR 563 if [[ "$s2a" = in && ! ( $create_remote_batch_job = true && ( "$s2b" = loc || "$s2b" = locopt )) ]]562 if [[ ( "$s2a" = in || "$s2a" = inopt ) && ! ( $create_remote_batch_job = true && "$s2b" != tr ) ]] 564 563 then 565 564 found=false … … 574 573 then 575 574 (( iin = iin + 1 )) 576 localin_pre[$iin]=$s1; transin_pre[$iin]=$s2b; actionin_pre[$iin]=$s2c;575 localin_pre[$iin]=$s1; actionin_pre[$iin]=$s2b; 577 576 pathin_pre[$iin]=$s4; endin_pre[$iin]=$s5; extin_pre[$iin]=$s6 577 if [[ "$s2a" = inopt ]] 578 then 579 optin_pre[$iin]=yes 580 else 581 optin_pre[$iin]=no 582 fi 578 583 579 584 # FILES WITH JOB-ATTRIBUTE ARE STORED IN THE SOURCES_FOR_RUN 580 585 # FOLDER IF THE JOB IS RUNNING ON A REMOTE HOST 581 if [[ $running_on_remote = true && ( "$s2b" = job || "$s2b" = jobopt )]]586 if [[ $running_on_remote = true && "$s2b" = tr ]] 582 587 then 583 588 pathin_pre[$iin]=${fast_io_catalog}/${sources_for_run_catalog} … … 588 593 if [[ "${s5: -1}" = "*" ]] 589 594 then 590 if [[ "$s2 c" = "di" ]]595 if [[ "$s2b" = "di" ]] 591 596 then 592 597 printf "\n +++ wildcards (*) not allowed with \"di\" file attribute." … … 602 607 fi 603 608 fi 604 elif [[ "$s2a" = out && ! ( $create_remote_batch_job = true && "$s2b" = loc) ]]609 elif [[ "$s2a" = out && ! ( $create_remote_batch_job = true ) ]] 605 610 then 606 611 found=false … … 615 620 then 616 621 (( iout = iout + 1 )) 617 localout_pre[$iout]=$s1; actionout_pre[$iout]=$s2 c; typeout_pre[$iout]=$s3;622 localout_pre[$iout]=$s1; actionout_pre[$iout]=$s2b; typeout_pre[$iout]=$s3; 618 623 pathout_pre[$iout]=$s4; endout_pre[$iout]=$s5; extout_pre[$iout]=$s6 619 624 … … 622 627 if [[ "${s1: -1}" = "*" ]] 623 628 then 624 if [[ "$s2 c" = "di" ]]629 if [[ "$s2b" = "di" ]] 625 630 then 626 631 printf "\n +++ wildcards (*) not allowed with \"di\" file attribute." … … 636 641 fi 637 642 fi 638 elif [[ "$s2a" != in && "$s2a" != out ]]639 then 640 printf "\n +++ I/O-attribute in configuration file $config_file has theinvalid"641 printf "\n value \"$s2\". Only \"in\" and \"out\" are allowed!"643 elif [[ "$s2a" != in && "$s2a" != inopt && "$s2a" != out ]] 644 then 645 printf "\n +++ I/O-attribute in file $fileconnection_file has invalid" 646 printf "\n value \"$s2\". Only \"in\", \"inopt\", and \"out\" are allowed!" 642 647 locat=connect; exit 643 648 fi … … 1024 1029 then 1025 1030 1026 # FILES WITH ATTRIBUTE locopt ARE OPTIONAL. NO ABORT, IF THEY DO NOT EXIST.1027 if [[ "${ transin_pre[$i]}" != "locopt" && "${transin_pre[$i]}" != "jobopt" ]]1031 # FILES WITH ATTRIBUTE opt ARE OPTIONAL. NO ABORT, IF THEY DO NOT EXIST. 1032 if [[ "${optin_pre[$i]}" != "yes" ]] 1028 1033 then 1029 1034 printf "\n\n +++ INPUT-file: " … … 1039 1044 (( nr_of_input_files = nr_of_input_files + 1 )) 1040 1045 localin[$nr_of_input_files]="${localin_pre[$i]}" 1041 transin[$nr_of_input_files]="unavailable" 1042 actionin[$nr_of_input_files]="${actionin_pre[$i]}" 1046 optin[$nr_of_input_files]="${optin_pre[$i]}" 1047 # transin[$nr_of_input_files]="unavailable" 1048 # actionin[$nr_of_input_files]="${actionin_pre[$i]}" 1049 actionin[$nr_of_input_files]="unavailable" 1043 1050 pathin[$nr_of_input_files]="${pathin_pre[$i]}" 1044 1051 endin[$nr_of_input_files]="${endin_pre[$i]}" … … 1128 1135 (( nr_of_input_files = nr_of_input_files + 1 )) 1129 1136 localin[$nr_of_input_files]="${localin_pre[$i]}"$ending 1130 transin[$nr_of_input_files]="${transin_pre[$i]}" 1137 optin[$nr_of_input_files]="${optin_pre[$i]}" 1138 # transin[$nr_of_input_files]="${transin_pre[$i]}" 1131 1139 actionin[$nr_of_input_files]="${actionin_pre[$i]}" 1132 1140 pathin[$nr_of_input_files]="${pathin_pre[$i]}" … … 1755 1763 1756 1764 1757 # WHEN CREATING A REMOTE BATCH JOB, THOSE INPUT FILES WITH JOB-ATTRIBUT WILL1758 # BE COPIED TO THE REMOTE HOST1765 # WHEN CREATING A REMOTE BATCH JOB, THOSE INPUT FILES WITH TRANSFER-ATTRIBUT 1766 # WILL BE COPIED TO THE REMOTE HOST 1759 1767 if [[ $create_remote_batch_job = true ]] 1760 1768 then … … 1763 1771 do 1764 1772 (( i = i + 1 )) 1765 if [[ "${ transin[$i]}" = job || "${transin[$i]}" = jobopt]]1773 if [[ "${actionin[$i]}" = tr ]] 1766 1774 then 1767 1775 eval inputfile=${pathin[$i]}/${frelin[$i]} … … 1813 1821 1814 1822 # SKIP OPTIONAL FILES, IF THEY DO NOT EXIST 1815 if [[ "${ transin[$i]}" = unavailable ]]1823 if [[ "${actionin[$i]}" = unavailable ]] 1816 1824 then 1817 1825 if [[ "${extin[$i]}" = "" || "${extin[$i]}" = " " ]] … … 1887 1895 1888 1896 # FILE IS STORED IN THE RESPECTIVE DIRECTORY GIVEN IN THE CONFIGURATION FILE 1889 if [[ "${actionin[$i]}" = "" || "${actionin[$i]}" = "di" || "${actionin[$i]}" = " npe" ]]1897 if [[ "${actionin[$i]}" = "" || "${actionin[$i]}" = "di" || "${actionin[$i]}" = "tr" || "${actionin[$i]}" = "npe" ]] 1890 1898 then 1891 1899 … … 1962 1970 printf "\n --- WARNING: ln failed, using cp instead (might be time consuming...)" 1963 1971 fi 1964 if [[ $running_on_remote = true && ( "${transin[$i]}" = job || "${transin[$i]}" = jobopt )]]1972 if [[ $running_on_remote = true && "${actionin[$i]}" = tr ]] 1965 1973 then 1966 1974 mv ${absnamein[$i]} ${localin[$i]} -
palm/trunk/SOURCE/diffusion_u.f90
r2233 r2638 25 25 ! ----------------- 26 26 ! $Id$ 27 ! bugfix for constant top momentumflux 28 ! 29 ! 2233 2017-05-30 18:08:54Z suehring 27 30 ! 28 31 ! 2232 2017-05-30 17:47:52Z suehring … … 328 331 ! 329 332 !-- Add momentum flux at model top 330 IF ( use_top_fluxes ) THEN333 IF ( use_top_fluxes .AND. constant_top_momentumflux ) THEN 331 334 surf_s = surf_def_h(2)%start_index(j,i) 332 335 surf_e = surf_def_h(2)%end_index(j,i) … … 550 553 ! 551 554 !-- Add momentum flux at model top 552 IF ( use_top_fluxes ) THEN555 IF ( use_top_fluxes .AND. constant_top_momentumflux ) THEN 553 556 surf_s = surf_def_h(2)%start_index(j,i) 554 557 surf_e = surf_def_h(2)%end_index(j,i) -
palm/trunk/SOURCE/diffusion_v.f90
r2233 r2638 25 25 ! ----------------- 26 26 ! $Id$ 27 ! bugfix for constant top momentumflux 28 ! 29 ! 2233 2017-05-30 18:08:54Z suehring 27 30 ! 28 31 ! 2232 2017-05-30 17:47:52Z suehring … … 316 319 ! 317 320 !-- Add momentum flux at model top 318 IF ( use_top_fluxes ) THEN321 IF ( use_top_fluxes .AND. constant_top_momentumflux ) THEN 319 322 surf_s = surf_def_h(2)%start_index(j,i) 320 323 surf_e = surf_def_h(2)%end_index(j,i) … … 538 541 ! 539 542 !-- Add momentum flux at model top 540 IF ( use_top_fluxes ) THEN543 IF ( use_top_fluxes .AND. constant_top_momentumflux ) THEN 541 544 surf_s = surf_def_h(2)%start_index(j,i) 542 545 surf_e = surf_def_h(2)%end_index(j,i) -
palm/trunk/SOURCE/surface_mod.f90
r2575 r2638 18 18 ! 19 19 !------------------------------------------------------------------------------! 20 ! 20 21 ! Current revisions: 21 22 ! ------------------ … … 25 26 ! ----------------- 26 27 ! $Id$ 28 ! bugfix for constant top momentumflux 29 ! 30 ! 2575 2017-10-24 09:57:58Z maronga 27 31 ! Pavement parameterization revised 28 32 ! … … 1543 1547 ! 1544 1548 !-- Top momentum fluxes 1545 surf%usws(num_h) = top_momentumflux_u * & 1549 IF ( constant_top_momentumflux ) THEN 1550 surf%usws(num_h) = top_momentumflux_u * & 1546 1551 momentumflux_input_conversion(nzt+1) 1547 surf%vsws(num_h) = top_momentumflux_v *&1552 surf%vsws(num_h) = top_momentumflux_v * & 1548 1553 momentumflux_input_conversion(nzt+1) 1554 ENDIF 1549 1555 ! 1550 1556 !-- Increment surface indices
Note: See TracChangeset
for help on using the changeset viewer.