comcot-gfortran icon indicating copy to clipboard operation
comcot-gfortran copied to clipboard

Unable to install. Error

Open Geographersoomro opened this issue 1 year ago • 7 comments

(base) drsoomro@drsoomro:~/Downloads/comcot-gfortran-master$ git clone https://github.com/HandsomeAndy/comcot-gfortran.git Cloning into 'comcot-gfortran'... remote: Enumerating objects: 180, done. remote: Total 180 (delta 0), reused 0 (delta 0), pack-reused 180 (from 1) Receiving objects: 100% (180/180), 231.33 KiB | 236.00 KiB/s, done. Resolving deltas: 100% (105/105), done. (base) drsoomro@drsoomro:~/Downloads/comcot-gfortran-master$ make gfortran -c -O2 type_module.f90 gfortran -c -O2 comcot.f90 gfortran -c -O2 initialization.f90 gfortran -c -O2 output.f90 gfortran -c -O2 deform.f90 gfortran -c -O2 mass.f90 gfortran -c -O2 moment.f90 gfortran -c -O2 boundaries.f90 boundaries.f90:669:38:

579 | CALL GRID_INTERP (TEMPX,LO%X,LO%Y(1:2),LO%NX,2, & | 2
...... 669 | CALL GRID_INTERP (TEMPX(I,1),LO%CXY(I,1,1), & | 1 Error: Element of assumed-shape or pointer array as actual argument at (1) cannot correspond to actual argument at (2) boundaries.f90:670:10:

579 | CALL GRID_INTERP (TEMPX,LO%X,LO%Y(1:2),LO%NX,2, & | 2
...... 670 | LO%CXY(I,1,2),1,1, & | 1
Error: Element of assumed-shape or pointer array as actual argument at (1) cannot correspond to actual argument at (2) boundaries.f90:676:38:

579 | CALL GRID_INTERP (TEMPX,LO%X,LO%Y(1:2),LO%NX,2, & | 2
...... 676 | CALL GRID_INTERP (TEMPX(I,2),LO%CXY(I,LO%NY,1), & | 1 Error: Element of assumed-shape or pointer array as actual argument at (1) cannot correspond to actual argument at (2) boundaries.f90:677:9:

579 | CALL GRID_INTERP (TEMPX,LO%X,LO%Y(1:2),LO%NX,2, & | 2
...... 677 | LO%CXY(I,LO%NY,2),1,1, & | 1
Error: Element of assumed-shape or pointer array as actual argument at (1) cannot correspond to actual argument at (2) boundaries.f90:683:36:

579 | CALL GRID_INTERP (TEMPX,LO%X,LO%Y(1:2),LO%NX,2, & | 2
...... 683 | CALL GRID_INTERP (TEMPY(1,J),LO%CXY(1,J,1), & | 1 Error: Element of assumed-shape or pointer array as actual argument at (1) cannot correspond to actual argument at (2) boundaries.f90:684:9:

579 | CALL GRID_INTERP (TEMPX,LO%X,LO%Y(1:2),LO%NX,2, & | 2
...... 684 | LO%CXY(1,J,2),1,1, & | 1
Error: Element of assumed-shape or pointer array as actual argument at (1) cannot correspond to actual argument at (2) boundaries.f90:690:36:

579 | CALL GRID_INTERP (TEMPX,LO%X,LO%Y(1:2),LO%NX,2, & | 2
...... 690 | CALL GRID_INTERP (TEMPY(2,J),LO%CXY(LO%NX,J,1), & | 1 Error: Element of assumed-shape or pointer array as actual argument at (1) cannot correspond to actual argument at (2) boundaries.f90:691:9:

579 | CALL GRID_INTERP (TEMPX,LO%X,LO%Y(1:2),LO%NX,2, & | 2
...... 691 | LO%CXY(LO%NX,J,2),1,1, & | 1
Error: Element of assumed-shape or pointer array as actual argument at (1) cannot correspond to actual argument at (2) boundaries.f90:701:38:

579 | CALL GRID_INTERP (TEMPX,LO%X,LO%Y(1:2),LO%NX,2, & | 2
...... 701 | CALL GRID_INTERP (TEMPX(I,1),LO%CXY(I,1,1)+SH, & | 1 Error: Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar) boundaries.f90:702:10:

579 | CALL GRID_INTERP (TEMPX,LO%X,LO%Y(1:2),LO%NX,2, & | 2
...... 702 | LO%CXY(I,1,2),1,1, & | 1
Error: Element of assumed-shape or pointer array as actual argument at (1) cannot correspond to actual argument at (2) boundaries.f90:708:38:

579 | CALL GRID_INTERP (TEMPX,LO%X,LO%Y(1:2),LO%NX,2, & | 2
...... 708 | CALL GRID_INTERP (TEMPX(I,2),LO%CXY(I,LO%NY,1)+SH, & | 1 Error: Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar) boundaries.f90:709:9:

579 | CALL GRID_INTERP (TEMPX,LO%X,LO%Y(1:2),LO%NX,2, & | 2
...... 709 | LO%CXY(I,LO%NY,2),1,1, & | 1
Error: Element of assumed-shape or pointer array as actual argument at (1) cannot correspond to actual argument at (2) boundaries.f90:715:36:

579 | CALL GRID_INTERP (TEMPX,LO%X,LO%Y(1:2),LO%NX,2, & | 2
...... 715 | CALL GRID_INTERP (TEMPY(1,J),LO%CXY(1,J,1)+SH, & | 1 Error: Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar) boundaries.f90:716:9:

579 | CALL GRID_INTERP (TEMPX,LO%X,LO%Y(1:2),LO%NX,2, & | 2
...... 716 | LO%CXY(1,J,2),1,1, & | 1
Error: Element of assumed-shape or pointer array as actual argument at (1) cannot correspond to actual argument at (2) boundaries.f90:722:36:

579 | CALL GRID_INTERP (TEMPX,LO%X,LO%Y(1:2),LO%NX,2, & | 2
...... 722 | CALL GRID_INTERP (TEMPY(2,J),LO%CXY(LO%NX-1,J,1)+SH, & | 1 Error: Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar) boundaries.f90:723:9:

579 | CALL GRID_INTERP (TEMPX,LO%X,LO%Y(1:2),LO%NX,2, & | 2
...... 723 | LO%CXY(LO%NX-1,J,2),1,1, & | 1
Error: Element of assumed-shape or pointer array as actual argument at (1) cannot correspond to actual argument at (2) boundaries.f90:733:38:

579 | CALL GRID_INTERP (TEMPX,LO%X,LO%Y(1:2),LO%NX,2, & | 2
...... 733 | CALL GRID_INTERP (TEMPX(I,1),LO%CXY(I,1,1), & | 1 Error: Element of assumed-shape or pointer array as actual argument at (1) cannot correspond to actual argument at (2) boundaries.f90:734:10:

579 | CALL GRID_INTERP (TEMPX,LO%X,LO%Y(1:2),LO%NX,2, & | 2
...... 734 | LO%CXY(I,1,2)+SH,1,1, & | 1
Error: Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar) boundaries.f90:740:38:

579 | CALL GRID_INTERP (TEMPX,LO%X,LO%Y(1:2),LO%NX,2, & | 2
...... 740 | CALL GRID_INTERP (TEMPX(I,2),LO%CXY(I,LO%NY-1,1), & | 1 Error: Element of assumed-shape or pointer array as actual argument at (1) cannot correspond to actual argument at (2) boundaries.f90:741:9:

579 | CALL GRID_INTERP (TEMPX,LO%X,LO%Y(1:2),LO%NX,2, & | 2
...... 741 | LO%CXY(I,LO%NY-1,2)+SH,1,1, & | 1
Error: Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar) boundaries.f90:747:36:

579 | CALL GRID_INTERP (TEMPX,LO%X,LO%Y(1:2),LO%NX,2, & | 2
...... 747 | CALL GRID_INTERP (TEMPY(1,J),LO%CXY(1,J,1), & | 1 Error: Element of assumed-shape or pointer array as actual argument at (1) cannot correspond to actual argument at (2) boundaries.f90:748:9:

579 | CALL GRID_INTERP (TEMPX,LO%X,LO%Y(1:2),LO%NX,2, & | 2
...... 748 | LO%CXY(1,J,2)+SH,1,1, & | 1
Error: Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar) boundaries.f90:754:36:

579 | CALL GRID_INTERP (TEMPX,LO%X,LO%Y(1:2),LO%NX,2, & | 2
...... 754 | CALL GRID_INTERP (TEMPY(2,J),LO%CXY(LO%NX,J,1), & | 1 Error: Element of assumed-shape or pointer array as actual argument at (1) cannot correspond to actual argument at (2) boundaries.f90:755:9:

579 | CALL GRID_INTERP (TEMPX,LO%X,LO%Y(1:2),LO%NX,2, & | 2
...... 755 | LO%CXY(LO%NX,J,2)+SH,1,1, & | 1
Error: Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar) make: *** [Makefile:70: boundaries.o] Error 1

Geographersoomro avatar Dec 07 '24 06:12 Geographersoomro

i solved this by installing in ubuntu 16.04 32 bit, probably because of gfortran or gcc version difference...

shyogaswara avatar Dec 12 '24 14:12 shyogaswara

Screenshot from 2024-12-13 11-12-12 I have This version ... what should i do? any suggestion.

Geographersoomro avatar Dec 13 '24 03:12 Geographersoomro

Screenshot from 2024-12-13 11-26-16 Unable to Install, Error..

Geographersoomro avatar Dec 13 '24 03:12 Geographersoomro

Screenshot 2024-12-15 201050

this is mine, probably the gfortran version is the main culprit

shyogaswara avatar Dec 15 '24 13:12 shyogaswara

It means we have to remove lasted version then install older. image here is mine.

Geographersoomro avatar Dec 16 '24 09:12 Geographersoomro

I have install older version, But Still Error. image

Please Any suggestion and guidance ?

Geographersoomro avatar Dec 16 '24 09:12 Geographersoomro

Add flag -fallow-argument-mismatch in the Makefile FC_FLAGS = -O2 -fallow-argument-mismatch #-fdefault-real-8

The error is gone and only have warning.

tw-sr avatar Jun 04 '25 04:06 tw-sr