455
456
457
458
459
460
461
462 INTEGER ICTXT, NOUT, SCODE
463
464
465 CHARACTER*(*) SNAME
466
467
468 EXTERNAL subptr
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600 INTEGER APOS
601
602
604
605
606
607
608
609 IF( scode.EQ.11 .OR. scode.EQ.12 .OR. scode.EQ.13 .OR.
610 $ scode.EQ.14 .OR. scode.EQ.15 ) THEN
611
612
613
614 apos = 1
615 CALL pcchkdim( ictxt, nout, subptr, scode, sname,
'N', apos )
616
617
618
619 ELSE IF( scode.EQ.21 ) THEN
620
621
622
623 apos = 2
624 CALL pcchkdim( ictxt, nout, subptr, scode, sname,
'M', apos )
625
626
627
628 apos = 3
629 CALL pcchkdim( ictxt, nout, subptr, scode, sname,
'N', apos )
630
631 ELSE IF( scode.EQ.22 .OR. scode.EQ.25 .OR. scode.EQ.26 .OR.
632 $ scode.EQ.27 ) THEN
633
634
635
636 apos = 2
637 CALL pcchkdim( ictxt, nout, subptr, scode, sname,
'N', apos )
638
639 ELSE IF( scode.EQ.23 ) THEN
640
641
642
643 apos = 4
644 CALL pcchkdim( ictxt, nout, subptr, scode, sname,
'N', apos )
645
646 ELSE IF( scode.EQ.24 ) THEN
647
648
649
650 apos = 1
651 CALL pcchkdim( ictxt, nout, subptr, scode, sname,
'M', apos )
652
653
654
655 apos = 2
656 CALL pcchkdim( ictxt, nout, subptr, scode, sname,
'N', apos )
657
658
659
660 ELSE IF( scode.EQ.31 ) THEN
661
662
663
664 apos = 3
665 CALL pcchkdim( ictxt, nout, subptr, scode, sname,
'M', apos )
666
667
668
669 apos = 4
670 CALL pcchkdim( ictxt, nout, subptr, scode, sname,
'N', apos )
671
672
673
674 apos = 5
675 CALL pcchkdim( ictxt, nout, subptr, scode, sname,
'K', apos )
676
677 ELSE IF( scode.EQ.32 ) THEN
678
679
680
681 apos = 3
682 CALL pcchkdim( ictxt, nout, subptr, scode, sname,
'M', apos )
683
684
685
686 apos = 4
687 CALL pcchkdim( ictxt, nout, subptr, scode, sname,
'N', apos )
688
689 ELSE IF( scode.EQ.33 .OR. scode.EQ.34 .OR. scode.EQ.35 .OR.
690 $ scode.EQ.36 ) THEN
691
692
693
694 apos = 3
695 CALL pcchkdim( ictxt, nout, subptr, scode, sname,
'N', apos )
696
697
698
699 apos = 4
700 CALL pcchkdim( ictxt, nout, subptr, scode, sname,
'K', apos )
701
702 ELSE IF( scode.EQ.37 ) THEN
703
704
705
706 apos = 1
707 CALL pcchkdim( ictxt, nout, subptr, scode, sname,
'M', apos )
708
709
710
711 apos = 2
712 CALL pcchkdim( ictxt, nout, subptr, scode, sname,
'N', apos )
713
714 ELSE IF( scode.EQ.38 ) THEN
715
716
717
718 apos = 5
719 CALL pcchkdim( ictxt, nout, subptr, scode, sname,
'M', apos )
720
721
722
723 apos = 6
724 CALL pcchkdim( ictxt, nout, subptr, scode, sname,
'N', apos )
725
726 ELSE IF( scode.EQ.39 ) THEN
727
728
729
730 apos = 2
731 CALL pcchkdim( ictxt, nout, subptr, scode, sname,
'M', apos )
732
733
734
735 apos = 3
736 CALL pcchkdim( ictxt, nout, subptr, scode, sname,
'N', apos )
737
738 ELSE IF( scode.EQ.40 ) THEN
739
740
741
742 apos = 3
743 CALL pcchkdim( ictxt, nout, subptr, scode, sname,
'M', apos )
744
745
746
747 apos = 4
748 CALL pcchkdim( ictxt, nout, subptr, scode, sname,
'N', apos )
749
750 END IF
751
752 RETURN
753
754
755
subroutine pcchkdim(ictxt, nout, subptr, scode, sname, argnam, argpos)