What is the recommended way to check if a petsc type, such as Vec, has already been created?
Current code looks like: Vec xvec if(xvec.eq.0) then ! Check if xvec needs to be created call VecCreate(PETSC_COMM_WORLD, xvec, ierr) endif In PETSc 3.8.3 I am now getting a compiler errorparkv.F(60): error #6355: This binary operation is invalid for this data type. [XVEC]
if(xvec.eq.0) then ---------^
