Changeset 1200 for trunk/AGRIF/AGRIF_FILES/modarrays.F
- Timestamp:
- 2008-09-24T15:05:20+02:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/AGRIF/AGRIF_FILES/modarrays.F
r662 r1200 176 176 C Local variables 177 177 C 178 SELECT CASE (nbdim) 179 CASE (1) 180 lower = lbound(Variable % array1) 181 upper = ubound(Variable % array1) 182 CASE (2) 183 lower = lbound(Variable % array2) 184 upper = ubound(Variable % array2) 185 CASE (3) 186 lower = lbound(Variable % array3) 187 upper = ubound(Variable % array3) 188 CASE (4) 189 lower = lbound(Variable % array4) 190 upper = ubound(Variable % array4) 191 CASE (5) 192 lower = lbound(Variable % array5) 193 upper = ubound(Variable % array5) 194 CASE (6) 195 lower = lbound(Variable % array6) 196 upper = ubound(Variable % array6) 197 END SELECT 198 C 178 lower = Variable % lb(1:nbdim) 179 upper = Variable % ub(1:nbdim) 199 180 return 200 181 C … … 552 533 C 553 534 554 #ifdef AGRIF_MPI555 535 C ************************************************************************** 556 536 CCC Subroutine GiveAgrif_SpecialValueToTab_mpi … … 581 561 CASE (1) 582 562 Where (Variable1 % array1( 583 & bound1( lower(1),1,2):bound1(upper(1),1,2))563 & bound1(1,1,2):bound1(1,2,2)) 584 564 & == Value) 585 Variable2 % array1( lower(1):upper(1))565 Variable2 % array1(bound1(1,1,1):bound1(1,2,1)) 586 566 & = Value 587 567 C … … 589 569 CASE (2) 590 570 Where (Variable1 % array2( 591 & bound1( lower(1),1,2):bound1(upper(1),1,2),592 & bound1( lower(2),2,2):bound1(upper(2),2,2))571 & bound1(1,1,2):bound1(1,2,2), 572 & bound1(2,1,2):bound1(2,2,2)) 593 573 & == Value) 594 Variable2 % array2( lower(1):upper(1),595 & lower(2):upper(2))574 Variable2 % array2(bound1(1,1,1):bound1(1,2,1), 575 & bound1(2,1,1):bound1(2,2,1)) 596 576 & = Value 597 577 C … … 599 579 CASE (3) 600 580 Where (Variable1 % array3( 601 & bound1( lower(1),1,2):bound1(upper(1),1,2),602 & bound1(lower(2),2,2):bound1(upper(2),2,2),603 & bound1(lower(3),3,2):bound1(upper(3),3,2))581 & bound1(1,1,2):bound1(1,2,2), 582 & bound1(2,1,2):bound1(2,2,2), 583 & bound1(3,1,2):bound1(3,2,2)) 604 584 & == Value) 605 Variable2 % array3( lower(1):upper(1),606 & lower(2):upper(2),607 & lower(3):upper(3))585 Variable2 % array3(bound1(1,1,1):bound1(1,2,1), 586 & bound1(2,1,1):bound1(2,2,1), 587 & bound1(3,1,1):bound1(3,2,1)) 608 588 & = Value 609 589 C … … 611 591 CASE (4) 612 592 Where (Variable1 % array4( 613 & bound1( lower(1),1,2):bound1(upper(1),1,2),614 & bound1(lower(2),2,2):bound1(upper(2),2,2),615 & bound1(lower(3),3,2):bound1(upper(3),3,2),616 & bound1(lower(4),4,2):bound1(upper(4),4,2))593 & bound1(1,1,2):bound1(1,2,2), 594 & bound1(2,1,2):bound1(2,2,2), 595 & bound1(3,1,2):bound1(3,2,2), 596 & bound1(4,1,2):bound1(4,2,2)) 617 597 & == Value) 618 Variable2 % array4( lower(1):upper(1),619 & lower(2):upper(2),620 & lower(3):upper(3),621 & lower(4):upper(4))598 Variable2 % array4(bound1(1,1,1):bound1(1,2,1), 599 & bound1(2,1,1):bound1(2,2,1), 600 & bound1(3,1,1):bound1(3,2,1), 601 & bound1(4,1,1):bound1(4,2,1)) 622 602 & = Value 623 603 C … … 625 605 CASE (5) 626 606 Where (Variable1 % array5( 627 & bound1( lower(1),1,2):bound1(upper(1),1,2),628 & bound1(lower(2),2,2):bound1(upper(2),2,2),629 & bound1(lower(3),3,2):bound1(upper(3),3,2),630 & bound1(lower(4),4,2):bound1(upper(4),4,2),631 & bound1(lower(5),5,2):bound1(upper(5),5,2))607 & bound1(1,1,2):bound1(1,2,2), 608 & bound1(2,1,2):bound1(2,2,2), 609 & bound1(3,1,2):bound1(3,2,2), 610 & bound1(4,1,2):bound1(4,2,2), 611 & bound1(5,1,2):bound1(5,2,2)) 632 612 & == Value) 633 Variable2 % array5( lower(1):upper(1),634 & lower(2):upper(2),635 & lower(3):upper(3),636 & lower(4):upper(4),637 & lower(5):upper(5))613 Variable2 % array5(bound1(1,1,1):bound1(1,2,1), 614 & bound1(2,1,1):bound1(2,2,1), 615 & bound1(3,1,1):bound1(3,2,1), 616 & bound1(4,1,1):bound1(4,2,1), 617 & bound1(5,1,1):bound1(5,2,1)) 638 618 & = Value 639 619 C … … 641 621 CASE (6) 642 622 Where (Variable1 % array6( 643 & bound1( lower(1),1,2):bound1(upper(1),1,2),644 & bound1(lower(2),2,2):bound1(upper(2),2,2),645 & bound1(lower(2),3,2):bound1(upper(3),3,2),646 & bound1(lower(4),4,2):bound1(upper(4),4,2),647 & bound1(lower(5),5,2):bound1(upper(5),5,2),648 & bound1(lower(6),6,2):bound1(upper(6),6,2))623 & bound1(1,1,2):bound1(1,2,2), 624 & bound1(2,1,2):bound1(2,2,2), 625 & bound1(3,1,2):bound1(3,2,2), 626 & bound1(4,1,2):bound1(4,2,2), 627 & bound1(5,1,2):bound1(5,2,2), 628 & bound1(6,1,2):bound1(6,2,2)) 649 629 & == Value) 650 Variable2 % array6( lower(1):upper(1),651 & lower(2):upper(2),652 & lower(3):upper(3),653 & lower(4):upper(4),654 & lower(5):upper(5),655 & lower(6):upper(6))630 Variable2 % array6(bound1(1,1,1):bound1(1,2,1), 631 & bound1(2,1,1):bound1(2,2,1), 632 & bound1(3,1,1):bound1(3,2,1), 633 & bound1(4,1,1):bound1(4,2,1), 634 & bound1(5,1,1):bound1(5,2,1), 635 & bound1(6,1,1):bound1(6,2,1)) 656 636 & = Value 657 637 C … … 662 642 C 663 643 End Subroutine GiveAgrif_SpecialValueToTab_mpi 664 #else 644 665 645 C ************************************************************************** 666 646 CCC Subroutine GiveAgrif_SpecialValueToTab … … 771 751 C 772 752 End Subroutine GiveAgrif_SpecialValueToTab 773 #endif 753 774 754 C 775 755 C
Note: See TracChangeset
for help on using the changeset viewer.