[petsc-dev] where is type(Mat) defined?

Blaise Bourdin bourdin at lsu.edu
Wed Jul 18 17:31:28 CDT 2012


Satish,

Sorry for the typo. Actually I think that you committed to petsc-dev and not 3.3

Blaise

On Jul 18, 2012, at 5:00 PM, Satish Balay wrote:

> I've changed the filename to 'zmatnullf.c' - per convention - and
> commited to petsc-3.3 [and merged to petsc-dev]
> 
> Satish
> 
> On Wed, 18 Jul 2012, Barry Smith wrote:
> 
>> 
>>  Satish,
>> 
>>    Please apply this patch if it makes sense.
>> 
>>   Thanks
>> 
>>   Barry
>> 
>> On Jul 17, 2012, at 11:25 PM, Blaise Bourdin wrote:
>> 
>>> 
>>> On Jul 17, 2012, at 10:51 PM, Barry Smith wrote:
>>> 
>>>> 
>>>> If you are using Fortran modules (and being a FORTRAN lover you are :-). Then you have to rebuild the modules whenever you change these files.  Do make cmake after you edit the file
>>> 
>>> You bet I am... 
>>> make cmake is what I was missing.
>>> 
>>> Is it possible to apply the attached patch to petsc-3.3 and petsc-dev?
>>> It adds the data type, and the fortran binding for MatNullSpaceView.
>>> 
>>> Blaise 
>>> 
>>> <MatNullSpace.patch>
>>> 
>>>> 
>>>> Barry
>>>> 
>>>> On Jul 17, 2012, at 10:41 PM, Blaise Bourdin wrote:
>>>> 
>>>>> Hi,
>>>>> 
>>>>> I am still trying to figure out how to add support for MatNullSpace with fortran data types. As I said in a previous email, adding the statement 
>>>>>   type MatNullSpace
>>>>>     PetscFortranAddr:: v
>>>>>   end type MatNullSpace
>>>>> in include/finclude/ftn-custom/petscmatdef.h90
>>>>> 
>>>>> is not enough.
>>>>> 
>>>>> Furthermore, if I remove the corresponding statement 
>>>>>   type Mat
>>>>>     PetscFortranAddr:: v
>>>>>   end type Mat
>>>>> for Mat, I can still compile code with a statement like
>>>>> Type(Mat) :: M
>>>>> 
>>>>> It looks like the fortran data type for Mat is defined somewhere else, but I can't figure out where. Can anybody shine some light for me?
>>>>> 
>>>>> Blaise
>>>>> -- 
>>>>> Department of Mathematics and Center for Computation & Technology
>>>>> Louisiana State University, Baton Rouge, LA 70803, USA
>>>>> Tel. +1 (225) 578 1612, Fax  +1 (225) 578 4276 http://www.math.lsu.edu/~bourdin
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>> 
>>> 
>>> -- 
>>> Department of Mathematics and Center for Computation & Technology
>>> Louisiana State University, Baton Rouge, LA 70803, USA
>>> Tel. +1 (225) 578 1612, Fax  +1 (225) 578 4276 http://www.math.lsu.edu/~bourdin
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>> 
>> 
> 

-- 
Department of Mathematics and Center for Computation & Technology
Louisiana State University, Baton Rouge, LA 70803, USA
Tel. +1 (225) 578 1612, Fax  +1 (225) 578 4276 http://www.math.lsu.edu/~bourdin










More information about the petsc-dev mailing list