[petsc-dev] missing fortran stuff?

Mark F. Adams mark.adams at columbia.edu
Fri Jan 25 14:44:28 CST 2013


Deep clean worked,

Now I get a segv in dmcreatematrix.  The string length is crazy.  I tried calling this with MPIAIJ and PETSC_NULL, both had crazy 'len' (but slightly different) and segv at the same place.

0x0000000100b112e4 in dmcreatematrix_ (dm=0x7fff5fbff5b0, mat_type=0x101e90f00 "", J=0x7fff5fbff5e0, ierr=0x7fff5fbff59c, len=1606415580) at zdmf.c:40
40        FIXCHAR(mat_type,len,t);
(gdb) list
35      
36      EXTERN_C_BEGIN
37      void PETSC_STDCALL dmcreatematrix_(DM *dm,CHAR mat_type PETSC_MIXED_LEN(len),Mat *J,PetscErrorCode *ierr PETSC_END_LEN(len))
38      {
39        char *t;
40        FIXCHAR(mat_type,len,t);
41        *ierr = DMCreateMatrix(*dm,t,J);
42        FREECHAR(mat_type,t);
43      }
44      EXTERN_C_END


On Jan 25, 2013, at 3:17 PM, Jed Brown <jedbrown at mcs.anl.gov> wrote:

> You must not have done "make allfortranstubs".
> 
> 
> On Fri, Jan 25, 2013 at 2:03 PM, Mark F. Adams <mark.adams at columbia.edu> wrote:
> The DM method is fixed but still no _vecnestgetsubvec_
> 
> This is what I see in the libs, _veccreatenest_ is there but _vecnestgetsubvec_ is not:
> 
>                  U _VecCreateNest
> 00000000000003c0 T _veccreatenest_
> 00000000000030e0 S _veccreatenest_.eh
> 0000000000013210 T _VecCreateNest
> 000000000001d968 S _VecCreateNest.eh
>                  U _VecCreateNest
>                  U _VecCreateNest
> ~/Codes/petsc-dev/arch-macosx-gnu-g/lib>nm *.a | grep -i vecnestgetsubvec
> 
> 000000000000ec90 T _VecNestGetSubVec
> 000000000001d728 S _VecNestGetSubVec.eh
> 000000000000ea20 T _VecNestGetSubVec_Nest
> 000000000001d6f8 S _VecNestGetSubVec_Nest.eh
> 000000000000f2c0 T _VecNestGetSubVecs
> 000000000001d788 S _VecNestGetSubVecs.eh
> 000000000000f0b0 T _VecNestGetSubVecs_Nest
> 000000000001d758 S _VecNestGetSubVecs_Nest.eh
> 000000000000e680 t _VecNestGetSubVecs_Private
> 000000000001d6c8 s _VecNestGetSubVecs_Private.eh
> 
> 
> 
> On Jan 25, 2013, at 2:49 PM, Jed Brown <jedbrown at mcs.anl.gov> wrote:
> 
>> 
>> On Fri, Jan 25, 2013 at 11:13 AM, Jed Brown <jedbrown at mcs.anl.gov> wrote:
>> On Fri, Jan 25, 2013 at 11:11 AM, Mark F. Adams <mark.adams at columbia.edu> wrote:
>> And, when I link I get some missing stuff:
>> 
>> Undefined symbols for architecture x86_64:
>>   "_dmsetoptionsprefix_", referenced from:
>>       _MAIN__ in petsc_kkt_solver.o
>>   "_matnestgetsubmat_", referenced from:
>>       _formjacobian_ in petsc_kkt_solver.o
>>   "_vecnestgetsubvec_", referenced from:
>>       _formjacobian_ in petsc_kkt_solver.o
>>       _formfunction_ in petsc_kkt_solver.o
>> 
>> Are these missing fortran wrappers?
>> 
>> Yeah, those are missing. I'll add them today and let you know.
>> 
>> Pushed
>> 
>> https://bitbucket.org/petsc/petsc-dev/commits/59843d687d130ed7b97ee18d8704320150a44f31
>> https://bitbucket.org/petsc/petsc-dev/commits/5420f5634239d2a06df1e090a0c1b0effe5ba36d
>> https://bitbucket.org/petsc/petsc-dev/commits/b800724bd477bca1a8dc8c2193153866285f511f
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20130125/6b4a6db7/attachment.html>


More information about the petsc-dev mailing list