Skip to content

Build error for complexify build #373

@k-ingles

Description

@k-ingles

Description

I have followed the instructions provided by the MACH-Aero documentation's Third Party Packages install instructions.
I have installed the third party software OpenMPI, PETSc-complex, and CGNS.
I have also built and installed the complexify module
My .bashrc contains all the environment variables suggested by the documentation and my PETSc build passed all the checks.

image

Sorry for another compilation related "bug".
The problem I am having is two-fold.

  1. When running the make -f Makefile_CS command, there is a step that runs python ../../src/build/fort_depend.py command.
    It scans the fortran files and builds dependency files. Whenever this script encounters the uses complexify clause, it thoughs
Error module complexify was not defined in any files. Skipping...

Is this expected behavior?

  1. When the compilation get to the file ../preprocessing/presprocessingAPI.F90, I start getting the error message
./preprocessing/preprocessingAPI.F90:4234:35:

 4234 |                                    PETSC_NULL_SCALAR, w_like1, PETScIerr)
      |                                   1
Error: Rank mismatch in argument ‘e’ at (1) (rank-1 and scalar)
../preprocessing/preprocessingAPI.F90:4238:35:

 4238 |                                    PETSC_NULL_SCALAR, w_like2, PETScIerr)
      |                                   1
Error: Rank mismatch in argument ‘e’ at (1) (rank-1 and scalar)
../preprocessing/preprocessingAPI.F90:4243:35:

 4243 |                                    PETSC_NULL_SCALAR, psi_like1, PETScIerr)
      |                                   1
Error: Rank mismatch in argument ‘e’ at (1) (rank-1 and scalar)
../preprocessing/preprocessingAPI.F90:4247:35:

 4247 |                                    PETSC_NULL_SCALAR, psi_like2, PETScIerr)
      |                                   1
Error: Rank mismatch in argument ‘e’ at (1) (rank-1 and scalar)
../preprocessing/preprocessingAPI.F90:4251:35:

 4251 |                                    PETSC_NULL_SCALAR, psi_like3, PETScIerr)
      |                                   1
Error: Rank mismatch in argument ‘e’ at (1) (rank-1 and scalar)
../preprocessing/preprocessingAPI.F90:4255:35:

 4255 |                                    PETSC_NULL_SCALAR, x_like, PETScIerr)
      |                                   1
Error: Rank mismatch in argument ‘e’ at (1) (rank-1 and scalar)

The same error message occurs for other files.
Notable, these files also appear in the list of files described by issue 1.

Please advise.

Code versions

  • Operating System: Ubuntu 22.04.5
  • Python: 3.11
  • OpenMPI: 5.0.6
  • CGNS: 4.5.0
  • PETSc: 3.22
  • Compiler: GCC 11.4
  • This repository: b61aaf3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions