[petsc-users] [EXT]Re: petscvec.h90

Anthony Paul Haas aph at email.arizona.edu
Wed Sep 9 17:55:34 CDT 2020


Hi Barry,

I made the changes according to the information you sent me (see below
snippet module LinearSolverClass please). But I am getting the following
errors:

error #7013
error #6457

Do you know what is going on?

Thanks,

Anthony

.......rc/../dependencies/eigen
-I/home/u7/aph/bitcart/src/driver2/material_response -c
navier_stokes/LinearSolverClass.F90

navier_stokes/LinearSolverClass.F90(45): error #7013: This module file was
not generated by any release of this compiler.   [PETSCVEC]

  use petscvec

------^

navier_stokes/LinearSolverClass.F90(110): error #6457: This derived type
name has not been declared.   [TVEC]

     type(tVec)            :: solution_ps,FirstSingularVec

----------^

navier_stokes/LinearSolverClass.F90(111): error #6457: This derived type
name has not been declared.   [TVEC]

     type(tVec)            :: rhs_ps!,b_ps

----------^

navier_stokes/LinearSolverClass.F90(115): error #6457: This derived type
name has not been declared.   [TKSP]

     type(tKSP)            :: ksp

----------^


module LinearSolverClass

  !



#include <petsc/finclude/petscvec.h>

#include <petsc/finclude/petscksp.h>


  use petscvec

  use petscksp


  !  use LHS, only: matLHS,rhs,sol



  use paramesh_dimensions

  use physicaldata

  use tree

  use workspace

  use utilities_data, only: mkdir

  use typedef, only: dist_fcn,solverType,mypeno

  use fill_guardcells, only: fill_guardcell_res

  !use navierstokes_data, only: fill_guardcell_phi



  use amr_1blk_bcset_mod, only: updateType

  !  use Turb_Models, only: nvars_turb




  !



  implicit none


  !



  !     ---------------------



  !     Class type definition



  !     ---------------------



  !



  TYPE, public :: LinearSolver_C

     !



     Integer,private        :: numVars

     Integer,private        :: numVarsp



......


On Wed, Sep 9, 2020 at 3:06 PM Barry Smith <bsmith at petsc.dev> wrote:

> *External Email*
> Anthony,
>
>   See
>
>
> https://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Sys/UsingFortran.html
>
> https://www.mcs.anl.gov/petsc/documentation/changes/38.html
>
>
>   Barry
>
>
> On Sep 9, 2020, at 4:23 PM, Anthony Paul Haas <aph at email.arizona.edu>
> wrote:
>
> Hello,
>
> Has the header file petscvec.h90 been removed from include/petsc/finclude/
> in recent Petsc releases?
>
> Should it then be replaced by petscvec.h?
>
> Thanks,
>
> Anthony
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200909/f2961532/attachment-0001.html>


More information about the petsc-users mailing list