-
Notifications
You must be signed in to change notification settings - Fork 8
Description
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