Skip to content

Building VORONOI with Intel Fortran compilation errors #18

@jbensabat

Description

@jbensabat

Hello
I am trying to build VORONOI using the intel fortran under windows. I have built PETSC for the same OS and compiler.
upon compiling grid.f I am getting a number of compilation errors related to calls to PETSC routines. Here is one example

! TOUGH2
if (grid%is_tough .EQV. PETSC_TRUE) then
call MatRestoreRow(grid%adjmatrix_area, grid%vertex_ids(i) - 1, ncols, cols, PETSC_NULL_SCALAR, ierr); CHKERRQ(ierr)
else
call MatRestoreRow(grid%adjmatrix, grid%vertex_ids(i) - 1, ncols, cols, PETSC_NULL_SCALAR, ierr); CHKERRQ(ierr)

     endif
     ! END TOUGH2

the error I get is
C:\LANL\voronoi\src\grid.F90(1899): error #8284: If the actual argument is scalar, the dummy argument shall be scalar unless the actual argument is of type character or is an element of an array that is not assumed shape, pointer, or polymorphic. [VALS]

I tried

! TOUGH2
if (grid%is_tough .EQV. PETSC_TRUE) then
call MatRestoreRow(grid%adjmatrix_area, grid%vertex_ids(i) - 1, ncols, cols, vals, ierr); CHKERRQ(ierr)
else
call MatRestoreRow(grid%adjmatrix, grid%vertex_ids(i) - 1, ncols, cols, vals, ierr); CHKERRQ(ierr)

     endif
     ! END TOUGH2

and the error vanishes
but is it kosher ?
best
jac

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