Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling Error #30

Open
Geodude-93 opened this issue Jun 27, 2024 · 0 comments
Open

Compiling Error #30

Geodude-93 opened this issue Jun 27, 2024 · 0 comments

Comments

@Geodude-93
Copy link

Hi,
I have installed all prerequisites but get following error while compiling:

mpif90 -g -Wall -pedantic -fbounds-check -O0 -Wuninitialized -ffpe-trap=invalid,zero,overflow -fbacktrace -pg -c mod_output.f90 -I/usr/include -lfftw3 -llapack -lblas -o mod_output.o
mod_output.f90:53:20:
`` 53 | call mpi_reduce(n_xy, n_xy_all, n_bin_x * n_bin_y, MPI_INTEGER4, &
| 1
......
91 | call mpi_reduce(sum_x, sum_x_all, n_bin_x, MPI_DOUBLE_PRECISION, &
| 2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(4)/REAL(8)).
mod_output.f90:17:20:

17 | call mpi_reduce(n_x, n_x_all, n_bin_x, MPI_INTEGER4, MPI_SUM, 0, &
| 1
......
91 | call mpi_reduce(sum_x, sum_x_all, n_bin_x, MPI_DOUBLE_PRECISION, &
| 2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(4)/REAL(8)).
make: *** [Makefile:122: mod_output.o] Error 1
``

I tried the compiling for debug and for fast computation. Both result in the the same error.

my specs:
OS: Ubuntu 22.04
GNU Fortran: 11.4.0
mpirun: 4.1.2

Thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant