Re: [petsc-dev] AOCreateBasic vs AOCreateMapping

2018-08-27 Thread Adrian Croucher
say "there cannot be any "holes" in the indices. Use AOCreateMapping() or AOCreateMappingIS() if you wish to have "holes" in the indices." That's why I am using AOCreateMapping in my code. - Adrian -- Dr Adrian Croucher Senior Research Fellow Department of En

[petsc-dev] Fortran interface problem in v.3.10.2

2018-10-17 Thread Adrian Croucher
ype-bound procedures. Previously this didn't bother it, but it looks like it does now. Is its complaint legitimate? or perhaps a compiler bug? (this is using gcc 6.3.0) - Adrian -- Dr Adrian Croucher Senior Research Fellow Department of Engineering Science University of Auckland, N

Re: [petsc-dev] Fortran interface problem in v.3.10.2

2018-10-18 Thread Adrian Croucher
nceTest(snes, convergence, context, & 1 Error: Actual argument at (1) to assumed-type dummy is of derived type with type-bound or FINAL procedures Cheers, Adrian On Oct 17, 2018, at 5:21 PM, Adrian Croucher wrote: hi A colleague has just re

Re: [petsc-dev] Fortran interface problem in v.3.10.2

2018-10-22 Thread Adrian Croucher
intel.com/en-us/forums/intel-fortran-compiler-for-linux-and-mac-os-x/topic/798744 -- Dr Adrian Croucher Senior Research Fellow Department of Engineering Science University of Auckland, New Zealand email: a.crouc...@auckland.ac.nz tel: +64 (0)9 923 4611

[petsc-dev] config error

2016-05-19 Thread Adrian Croucher
name to return type*** *** Any ideas? Cheers, Adrian -- Dr Adrian Croucher Senior Research Fellow Department of Engineering Science University of Auckland, New Zealand email: a.crouc...@auckland.ac.nz tel: +64 (0)9 923 84611

[petsc-dev] MatMFFDSetType

2016-06-23 Thread Adrian Croucher
a bug? Cheers, Adrian -- Dr Adrian Croucher Senior Research Fellow Department of Engineering Science University of Auckland, New Zealand email: a.crouc...@auckland.ac.nz tel: +64 (0)9 923 84611

Re: [petsc-dev] MatMFFDSetType

2016-06-23 Thread Adrian Croucher
ct. This does compile, but doesn't look like it is actually doing anything- i.e it's not giving the same behaviour as if I set "-mat_fd_type ds" on the command line. It just gives the default wp behaviour. - Adrian -- Dr Adrian Croucher Senior Research Fellow Department o

Re: [petsc-dev] MatMFFDSetType

2016-06-23 Thread Adrian Croucher
ian -- Dr Adrian Croucher Senior Research Fellow Department of Engineering Science University of Auckland, New Zealand email: a.crouc...@auckland.ac.nz tel: +64 (0)9 923 84611

Re: [petsc-dev] MatMFFDSetType

2016-06-23 Thread Adrian Croucher
alling MatMFFDSetType() with argument MATMFFD_DS instead of "ds"? I will try debugging into MatMFFDSetType() and seeing what it's doing when I pass in "ds". - Adrian -- Dr Adrian Croucher Senior Research Fellow Department of Engineering Science University of Auckland, New Zealand email: a.crouc...@auckland.ac.nz tel: +64 (0)9 923 84611

Re: [petsc-dev] MatMFFDSetType

2016-06-23 Thread Adrian Croucher
On 24/06/16 15:58, Adrian Croucher wrote: I will try debugging into MatMFFDSetType() and seeing what it's doing when I pass in "ds". I did this. In MatMFFDSetType() (mffd.c: 116), it executes ierr = PetscObjectTypeCompare((PetscObject)mat,MATMFFD,&match);CHKERRQ(ier

Re: [petsc-dev] MatMFFDSetType

2016-06-23 Thread Adrian Croucher
TMFFD (= "mffd"). Does that mean I should be setting the matrix type to MATMFFD to get this to work? - Adrian On 24/06/16 16:35, Adrian Croucher wrote: On 24/06/16 15:58, Adrian Croucher wrote: I will try debugging into MatMFFDSetType() and seeing what it's doing when I pa

Re: [petsc-dev] MatMFFDSetType

2016-06-26 Thread Adrian Croucher
I started going astray. How do I do the equivalent of setting the option "-mat_fd_type ds" in my code? There is MatMFFDSetType() for MATMFFD, but doesn't seem to be anything like a plain MatFDSetType(). - Adrian -- Dr Adrian Croucher Senior Research Fellow Department of Engin

Re: [petsc-dev] MatMFFDSetType

2016-06-26 Thread Adrian Croucher
t may possibly not matter any more about wp or ds. - Adrian -- Dr Adrian Croucher Senior Research Fellow Department of Engineering Science University of Auckland, New Zealand email: a.crouc...@auckland.ac.nz tel: +64 (0)9 923 84611

Re: [petsc-dev] MatMFFDSetType

2016-06-28 Thread Adrian Croucher
. Thanks, that appears to work fine for me. - Adrian -- Dr Adrian Croucher Senior Research Fellow Department of Engineering Science University of Auckland, New Zealand email: a.crouc...@auckland.ac.nz tel: +64 (0)9 923 84611

[petsc-dev] SNES_DIVERGED_DTOL in Fortran

2016-11-10 Thread Adrian Croucher
missing? Cheers, Adrian -- Dr Adrian Croucher Senior Research Fellow Department of Engineering Science University of Auckland, New Zealand email: a.crouc...@auckland.ac.nz tel: +64 (0)9 923 4611

Re: [petsc-dev] SNES_DIVERGED_DTOL in Fortran

2016-11-10 Thread Adrian Croucher
On 11/11/16 15:10, Barry Smith wrote: Fixed in master and next. We forgot to add it for fortran Thanks Barry You should just be able to do a git pull and have it working, no need to reconfigure or recompile. Yes, that's done the trick- thanks. - Adrian -- Dr A

[petsc-dev] reading gmsh into DMPlex

2017-01-16 Thread Adrian Croucher
appears to be complaining about the $EndElements line not matching properly, but it looks ok to me. - Adrian -- Dr Adrian Croucher Senior Research Fellow Department of Engineering Science University of Auckland, New Zealand email: a.crouc...@auckland.ac.nz tel: +64 (0)9 923 4611 testmesh.msh Description: Mesh model

Re: [petsc-dev] reading gmsh into DMPlex

2017-01-16 Thread Adrian Croucher
. Would it be possible to make DMPlexCreateGmsh() a bit more robust about the line ending at the end of the file? Gmsh itself isn't bothered by it. - Adrian -- Dr Adrian Croucher Senior Research Fellow Department of Engineering Science University of Auckland, New Zealand email: a.crouc..

Re: [petsc-dev] reading gmsh into DMPlex

2017-01-16 Thread Adrian Croucher
-- Dr Adrian Croucher Senior Research Fellow Department of Engineering Science University of Auckland, New Zealand email: a.crouc...@auckland.ac.nz tel: +64 (0)9 923 4611

[petsc-dev] array bounds exceeded?

2017-01-23 Thread Adrian Croucher
dge+1)%(dim+1))*dim+d]);} - Adrian -- Dr Adrian Croucher Senior Research Fellow Department of Engineering Science University of Auckland, New Zealand email: a.crouc...@auckland.ac.nz tel: +64 (0)9 923 4611

Re: [petsc-dev] 6-node wedge cells in DMPlex

2017-01-25 Thread Adrian Croucher
moment. But at some point I will need it. Okay, when you need it, we will make it work. -- Dr Adrian Croucher Senior Research Fellow Department of Engineering Science University of Auckland, New Zealand email: a.crouc...@auckland.ac.nz tel: +64 (0)9 923 4611

Re: [petsc-dev] 6-node wedge cells in DMPlex

2017-01-26 Thread Adrian Croucher
hi Matt, On 27/01/17 03:04, Matthew Knepley wrote: On Wed, Jan 25, 2017 at 11:12 PM, Adrian Croucher mailto:a.crouc...@auckland.ac.nz>> wrote: hi Matt, A couple of years ago we discussed adding support for 6-node wedge cells in DMPlex- the hurdle being that at present

[petsc-dev] MatFDColoringGetPerturbedColumns() in fortran

2017-05-09 Thread Adrian Croucher
hi Currently the function MatFDColoringGetPerturbedColumns() doesn't apear to be accessible from Fortran. I get an 'undefined reference' error when I try to compile. Is there just a missing interface? Cheers, Adrian -- Dr Adrian Croucher Senior Research Fellow Department

Re: [petsc-dev] MatFDColoringGetPerturbedColumns() in fortran

2017-05-09 Thread Adrian Croucher
which return arrays like this, e.g. ISGetIndicesF90(). - Adrian -- Dr Adrian Croucher Senior Research Fellow Department of Engineering Science University of Auckland, New Zealand email: a.crouc...@auckland.ac.nz tel: +64 (0)9 923 4611

Re: [petsc-dev] MatFDColoringGetPerturbedColumns() in fortran

2017-05-10 Thread Adrian Croucher
PETSc 3.7.x -- Dr Adrian Croucher Senior Research Fellow Department of Engineering Science University of Auckland, New Zealand email: a.crouc...@auckland.ac.nz tel: +64 (0)9 923 4611

[petsc-dev] segfault in SNESDestroy()

2017-05-17 Thread Adrian Croucher
- Error Message -- -- Dr Adrian Croucher Senior Research Fellow Department of Engineering Science University of Auckland, New Zealand email: a.crouc...@auckland.ac.nz tel: +64 (0)9 923 4611

Re: [petsc-dev] segfault in SNESDestroy()

2017-05-28 Thread Adrian Croucher
hanks very much, that seems to have fixed it. - Adrian -- Dr Adrian Croucher Senior Research Fellow Department of Engineering Science University of Auckland, New Zealand email: a.crouc...@auckland.ac.nz tel: +64 (0)9 923 4611

[petsc-dev] Missing Fortran interface for DMGetLabelName() ?

2017-06-27 Thread Adrian Croucher
hi, If I try to use the function DMGetLabelName() from Fortran I get an 'undefined reference' error while compiling. Is there a missing interface? - Adrian -- Dr Adrian Croucher Senior Research Fellow Department of Engineering Science University of Auckland, New Zealand emai

Re: [petsc-dev] Missing Fortran interface for DMGetLabelName() ?

2017-06-29 Thread Adrian Croucher
On 29/06/17 05:59, Matthew Knepley wrote: On Tue, Jun 27, 2017 at 6:39 PM, Adrian Croucher mailto:a.crouc...@auckland.ac.nz>> wrote: hi, If I try to use the function DMGetLabelName() from Fortran I get an 'undefined reference' error while compiling. Is

[petsc-dev] DMLabel in Fortran

2017-08-02 Thread Adrian Croucher
need to include petscdmlabel.h as well. Is that a bug or a feature? - Adrian -- Dr Adrian Croucher Senior Research Fellow Department of Engineering Science University of Auckland, New Zealand email: a.crouc...@auckland.ac.nz tel: +64 (0)9 923 4611

[petsc-dev] PetscSF in Fortran

2017-09-20 Thread Adrian Croucher
ves access to everything. Also I'm not sure of exactly how to set up the ilocal and iremote array parameters for this function in Fortran. How should they be declared- as pointer arrays? - Adrian -- Dr Adrian Croucher Senior Research Fellow Department of Engineering Science Unive

Re: [petsc-dev] PetscSF in Fortran

2017-09-24 Thread Adrian Croucher
age in doing it that way? However, at the moment I can't, because it appears the Fortran interface for DMCreateDefaultSF() is missing. I would have thought the interface for that should be simple enough, as it just takes a DM and a couple of PetscSections. - Adrian Adrian Croucher w

Re: [petsc-dev] PetscSF in Fortran

2017-09-24 Thread Adrian Croucher
On 25/09/17 13:18, Adrian Croucher wrote: Alternatively, it occurred to me I could probably just use DMCreateDefaultSF() to create the point SF on the new DM- would there be any disadvantage in doing it that way? However, at the moment I can't, because it appears the Fortran inte

Re: [petsc-dev] PetscSF in Fortran

2017-09-24 Thread Adrian Croucher
On 25/09/17 13:37, Adrian Croucher wrote: Actually it looks like DMGetDefaultSF() does already work in Fortran though, and could be used to do the same thing. Do you think that would be a reasonable way to do it? Hmm, I just tried it and it looks like the default SF produced by this

Re: [petsc-dev] PetscSF in Fortran

2017-09-26 Thread Adrian Croucher
s so that the depth stratum bounds are updated correctly. I also shift the end_interior value for each depth stratum, so that code relying on DMPlexGetHybridBounds() should still work. Would you expect copying the SF to work in this case? - Adrian -- Dr Adrian Croucher Senior Research Fellow

Re: [petsc-dev] PetscSF in Fortran

2017-09-27 Thread Adrian Croucher
ndices, and also update the remote root index for each leaf (presumably I can use the original SF and PetscSFBcastBegin/ PetscSFBcastEnd to do that). If you agree, then I will need working Fortran interfaces to the PetscSFGetGraph/ PetscSFSetGraph functions, which are missing at present. Are

Re: [petsc-dev] PetscSF in Fortran

2017-09-27 Thread Adrian Croucher
hi On 28/09/17 15:34, Adrian Croucher wrote: So I think I will need to use PetscSFSetGraph() after all, so I can increase the number of roots, update the leaf point indices, and also update the remote root index for each leaf (presumably I can use the original SF and PetscSFBcastBegin

Re: [petsc-dev] DMLabel in Fortran

2017-10-10 Thread Adrian Croucher
hi On 03/08/17 13:10, Matthew Knepley wrote: On Wed, Aug 2, 2017 at 8:06 PM, Adrian Croucher mailto:a.crouc...@auckland.ac.nz>> wrote: I haven't tried this myself, but two of my colleagues are reporting problems accessing DMLabel from Fortran, when using the latest &#

Re: [petsc-dev] PetscSF in Fortran

2017-10-12 Thread Adrian Croucher
st don't understand how this should be done. - Adrian On 28/09/17 15:34, Adrian Croucher wrote: hi On 28/09/17 04:18, Matthew Knepley wrote: Okay, I think this should be easy to solve. First a little bit about SF. There are two parts to the specification. You have the communication part

Re: [petsc-dev] PetscSF in Fortran

2017-10-15 Thread Adrian Croucher
ctory and rebuilding everything (including make allfortranstubs) but again it didn't help. I'm a bit surprised that custom Fortran bindings should produce anything in include/petsc/finclude/ftn-auto/, I thought that would only be for the auto-generated stuff that comes out of b

Re: [petsc-dev] PetscSF in Fortran

2017-10-15 Thread Adrian Croucher
imilar "petsc/finclude/petscsf.h"? It looks like PetscSF is already defined inside petsc/finclude/petscis.h. It's not clear to me which bits of the SF interface need to be in their own files and which are lumped in with the IS interface. - Adrian -- Dr Adrian Croucher Senior Rese

Re: [petsc-dev] PetscSF in Fortran

2017-10-15 Thread Adrian Croucher
ms to me that it would be cleaner to do so. So do you think the SF stuff in petsc/finclude/petscis.h should be taken out, and put into a new petsc/finclude/petscsf.h ? - Adrian -- Dr Adrian Croucher Senior Research Fellow Department of Engineering Science University of Auckland, New Zealand email:

Re: [petsc-dev] PetscSF in Fortran

2017-10-17 Thread Adrian Croucher
hi On 16/10/17 15:16, Jed Brown wrote: Adrian Croucher writes: So do you think the SF stuff in petsc/finclude/petscis.h should be taken out, and put into a new petsc/finclude/petscsf.h ? I think that's desirable for symmetry with include/petscsf.h, but it isn't importan

Re: [petsc-dev] PetscSF in Fortran

2017-10-19 Thread Adrian Croucher
hi On 19/10/17 06:45, Matthew Knepley wrote: On Tue, Oct 17, 2017 at 11:35 PM, Adrian Croucher mailto:a.crouc...@auckland.ac.nz>> wrote: So, now I'm trying to add Fortran bindings for PetscSFBcastBegin() and PetscSFBcastEnd(). From the C side I have added the fol

Re: [petsc-dev] [FORGED] Re: PetscSF in Fortran

2017-10-23 Thread Adrian Croucher
rray1dCreate((void*) ilocal, PETSC_INT, 1, *nleaves, lptr PETSC_F90_2PTR_PARAM(lptrd)); if (*ierr) return; + *ierr = F90Array2dCreate((void*) iremote, PETSC_INT, 1, 2, 1, *nleaves, rptr PETSC_F90_2PTR_PARAM(rptrd)); +} - Adrian -- Dr Adrian Croucher Senior Research Fellow Department of Engineering Science University of Auckland, New Zealand email: a.crouc...@auckland.ac.nz tel: +64 (0)9 923 4611

Re: [petsc-dev] [FORGED] Re: [FORGED] Re: PetscSF in Fortran

2017-10-23 Thread Adrian Croucher
it in /vec/f90-mod/ftn-auto-interfaces/petscpetscsf.h90), but the one for PetscSFGetGraph() is missing for some reason. Any clues? - Adrian -- Dr Adrian Croucher Senior Research Fellow Department of Engineering Science University of Auckland, New Zealand email: a.crouc...@auckland.ac.nz tel: +6

Re: [petsc-dev] PetscSF in Fortran

2017-10-23 Thread Adrian Croucher
hi On 24/10/17 13:55, Adrian Croucher wrote: The stub for PetscSFSetGraph() is getting automatically generated (I can see it in /vec/f90-mod/ftn-auto-interfaces/petscpetscsf.h90), but the one for PetscSFGetGraph() is missing for some reason. Any clues? Oh, I see, all it needs to turn on

Re: [petsc-dev] PetscSF in Fortran

2017-10-23 Thread Adrian Croucher
n't really seem to do that. - Adrian -- Dr Adrian Croucher Senior Research Fellow Department of Engineering Science University of Auckland, New Zealand email: a.crouc...@auckland.ac.nz tel: +64 (0)9 923 4611

Re: [petsc-dev] DMLabel in Fortran

2017-10-24 Thread Adrian Croucher
hi, On 11/10/17 22:18, Matthew Knepley wrote: On Tue, Oct 10, 2017 at 9:07 PM, Adrian Croucher mailto:a.crouc...@auckland.ac.nz>> wrote: hi On 03/08/17 13:10, Matthew Knepley wrote: On Wed, Aug 2, 2017 at 8:06 PM, Adrian Croucher mailto:a.crouc...@auckland.ac.nz&g

Re: [petsc-dev] [FORGED] Re: PetscSF in Fortran

2017-10-24 Thread Adrian Croucher
(pilocal)); Other than that I think it is all go. (It even rightfully complains now if I try to pass MPI_INT instead of MPI_INTEGER into PetscSFBcastBegin() in my Fortran calling code.) - Adrian -- Dr Adrian Croucher Senior Research Fellow Department of Engineering Science University of Auckland

Re: [petsc-dev] PetscSF in Fortran

2017-10-30 Thread Adrian Croucher
-- Dr Adrian Croucher Senior Research Fellow Department of Engineering Science University of Auckland, New Zealand email: a.crouc...@auckland.ac.nz tel: +64 (0)9 923 4611

Re: [petsc-dev] PetscSF in Fortran

2017-10-31 Thread Adrian Croucher
/impls/basic/sfbasic.c:497, which is: DEF_PackCmp(int) Dunno what that means though... - Adrian -- Dr Adrian Croucher Senior Research Fellow Department of Engineering Science University of Auckland, New Zealand email: a.crouc...@auckland.ac.nz tel: +64 (0)9 923 4611

Re: [petsc-dev] PetscSF in Fortran

2017-10-31 Thread Adrian Croucher
0) at /home/acro018/software/PETSc/code/src/vec/is/sf/impls/basic/sfbasic.c:497 497 DEF_PackCmp(int) - Adrian -- Dr Adrian Croucher Senior Research Fellow Department of Engineering Science University of Auckland, New Zealand email: a.crouc...@auckland.ac.nz tel: +64 (0)9 923 4611

Re: [petsc-dev] PetscSF in Fortran

2017-10-31 Thread Adrian Croucher
On 01/11/17 16:20, Jed Brown wrote: Adrian Croucher writes: On 01/11/17 09:50, Smith, Barry F. wrote: Please send the full traceback. Cut and paste It's not really giving me much, only: Program received signal SIGSEGV, Segmentation fault. 0x7efe8574d6a9 in Pack_int_1 (n=2,

Re: [petsc-dev] PetscSF in Fortran

2017-11-01 Thread Adrian Croucher
hi On 31/10/17 11:21, Adrian Croucher wrote: I just pulled the latest next branch and found that the PetscSF stuff doesn't appear to work in Fortran anymore for me. I think I've found the trouble- after you put in the check to see if Fortran has type(*) support, I needed to r

Re: [petsc-dev] *unwind* next branch

2017-11-13 Thread Adrian Croucher
e do the following (in all your git clones): git checkout master git fetch git branch -D next git checkout next I just did this, and now the PetscSFNode type is unavailable from Fortran again. Barry added Fortran support for this a couple of weeks ago, but now it seems to be gone. - Adrian --

Re: [petsc-dev] [FORGED] Re: *unwind* next branch

2017-11-13 Thread Adrian Croucher
x27;s fixed it. - Adrian -- Dr Adrian Croucher Senior Research Fellow Department of Engineering Science University of Auckland, New Zealand email: a.crouc...@auckland.ac.nz tel: +64 (0)9 923 4611

Re: [petsc-dev] [petsc-users] ISGlobalToLocalMappingApplyBlock

2017-11-15 Thread Adrian Croucher
for the block version the bounds should not be scaled. I've just created a pull request (acroucher/fix-IS-global-to-local-mapping-block) with a suggested fix. - Adrian On 16/11/17 11:52, Adrian Croucher wrote: I actually attached the wrong test program last time- I've attached

[petsc-dev] DMPlex VecView to HDF5

2018-02-12 Thread Adrian Croucher
sEnd = 0,0 and a default (or maybe null) value for ft? - Adrian -- Dr Adrian Croucher Senior Research Fellow Department of Engineering Science University of Auckland, New Zealand email: a.crouc...@auckland.ac.nz tel: +64 (0)9 923 4611

Re: [petsc-dev] DMPlex VecView to HDF5

2018-02-19 Thread Adrian Croucher
n /home/acro018/software/PETSc/code/src/vec/vec/interface/vector.c [1]PETSC ERROR: #13 User provided function() line 0 in User file #11 User provided function() line 0 in User file On 13/02/18 17:13, Matthew Knepley wrote: On Mon, Feb 12, 2018 at 10:57 PM, Adrian Croucher mailto:a.crouc...@auckl

Re: [petsc-dev] DMPlex VecView to HDF5

2018-02-21 Thread Adrian Croucher
hi Matt, On 20/02/18 12:32, Matthew Knepley wrote: On Mon, Feb 19, 2018 at 4:33 PM, Adrian Croucher mailto:a.crouc...@auckland.ac.nz>> wrote: hi Matt I tried what you suggested and modified DMPlexGetFieldType_Internal() so that all processes have the same field ty

Re: [petsc-dev] DMPlex VecView to HDF5

2018-02-28 Thread Adrian Croucher
hi, I have created a pull request (acroucher/dmplex-hdf5-vecview) with the two fixes I came up with to prevent HDF5 DMPlex VecView() crashing when one process has no cells on it. Cheers, Adrian On 22/02/18 17:12, Adrian Croucher wrote: hi Matt, On 20/02/18 12:32, Matthew Knepley wrote

[petsc-dev] DMPlexComputeCellGeometryFVM from fortran

2014-03-17 Thread Adrian Croucher
and configured with --with-fortran-interfaces=1. At the top of my code I have #include . I noticed the fortran interfaces to some other functions (e.g. DMPlexCreateFromDAG) also seemed to be missing in older versions (e.g. the 'maint' branch)- is this one perhaps still to be added too?

Re: [petsc-dev] DMPlexComputeCellGeometryFVM from fortran

2014-03-19 Thread Adrian Croucher
troid(2), centroid(3) end do call DMDestroy(dm, ierr); CHKERRQ(ierr) call PetscFinalize(ierr); CHKERRQ(ierr) deallocate(numPoints, coneSize, cones, coneOrientations, vertexCoords) end program main -- Dr Adrian Croucher Department of Engineering Science University of Auckland New Zealand tel 64-9-373-7599 ext 84611

Re: [petsc-dev] DMPlexComputeCellGeometryFVM from fortran

2014-03-20 Thread Adrian Croucher
27;(a, i2, a, f8.4, a, 3(f8.4, 1x))'), & 'cell: ', i, ' volume: ', vol, ' centroid: ', & pcentroid(1), pcentroid(2), pcentroid(3) end do call DMDestroy(dm, ierr); CHKERRQ(ierr) call PetscFinalize(ierr); CHKERRQ(ierr) deallocate

Re: [petsc-dev] DMPlexComputeCellGeometryFVM from fortran

2014-03-23 Thread Adrian Croucher
The interface needed to be declared. I pushed the fix, and your example to PETSc (ex3f90). Great, that's fixed it. The weird behaviour concerning initializing the centroid and normal variables is gone now too. Thanks very much for your help- much appreciated. - Adrian -- Dr A

[petsc-dev] DMViewFromOptions() in fortran

2014-03-25 Thread Adrian Croucher
a DMPlex that's been distributed using DMPlexDistribute()? DMView just seems to give me the cell counts as if the DMPlex was still all on rank 0. There doesn't seem to be anything in the docs about DMViewFromOptions() yet, so I'm just guessing what it's for from the examples.

Re: [petsc-dev] DMViewFromOptions() in fortran

2014-03-25 Thread Adrian Croucher
, coneOrientations, vertexCoords) end program main -- Dr Adrian Croucher Department of Engineering Science University of Auckland New Zealand tel 64-9-373-7599 ext 84611

[petsc-dev] calling DMPlexPointLocalRef() from fortran

2014-04-03 Thread Adrian Croucher
Scalar, pointer:: p(:) However the compiler complains: Error: Rank mismatch in argument 'array' at (1) (scalar and rank-1) It's not liking the 'part' argument, but I'm not sure how it's supposed to be passed in. Any clues? Cheers, Adrian -- Dr Adrian Croucher De

Re: [petsc-dev] calling DMPlexPointLocalRef() from fortran

2014-04-06 Thread Adrian Croucher
) call MPI_Comm_rank(comm, rank); CHKERRQ(ierr) do c = cStart, cEnd-1 call PetscSectionGetOffset(cell_section, c, off, ierr); CHKERRQ(ierr) part(off) = rank end do call VecRestoreArrayF90(partition, part, ierr); CHKERRQ(ierr) end subroutine create_partition_vector -- Dr Adrian

Re: [petsc-dev] calling DMPlexPointLocalRef() from fortran

2014-04-07 Thread Adrian Croucher
have I just messed it up? I also came across another function that seems to be lacking a fortran interface: DMPlexConstructGhostCells(). Not totally sure if I need that, but again was just trying to follow what is done in TS ex 33. Cheers, Adrian -- Dr Adrian Croucher Department of Engineering

Re: [petsc-dev] calling DMPlexPointLocalRef() from fortran

2014-04-08 Thread Adrian Croucher
that works out I'll use it as a basis for solving my real problem. Cheers, Adrian -- Dr Adrian Croucher Department of Engineering Science University of Auckland New Zealand tel 64-9-373-7599 ext 84611

[petsc-dev] mesh face areas with DMPlexComputeCellGeometryFVM()

2014-04-10 Thread Adrian Croucher
1 call DMPlexComputeCellGeometryFVM(dm, f, facearea, pcentroid, pnormal, ierr) write(*,'(i2, 1x, 4f10.4)'), f, facearea, centroid end do call DMDestroy(dm, ierr); CHKERRQ(ierr) call PetscFinalize(ierr); CHKERRQ(ierr) end program main -- Dr Adrian Croucher Department of

Re: [petsc-dev] mesh face areas with DMPlexComputeCellGeometryFVM()

2014-04-13 Thread Adrian Croucher
fixed it. The problems I was seeing last week with VecView() writing to VTK seem to have gone now too. Wunderbar! Cheers, Adrian -- Dr Adrian Croucher Department of Engineering Science University of Auckland New Zealand tel 64-9-373-7599 ext 84611

[petsc-dev] 6-node wedge cells in DMPlex

2014-04-14 Thread Adrian Croucher
d cell types (like 6-node wedge) that have faces with different numbers of nodes? We use wedge cells quite a bit, so it would limit the usefulness of DMPlex if it can't support them. Unless there is some kind of workaround? Cheers, Adrian -- Dr Adrian Croucher Department of Engineering

Re: [petsc-dev] 6-node wedge cells in DMPlex

2014-04-15 Thread Adrian Croucher
works first, and it probably isn't top of my priority list either at present- I can continue getting my code together without support for wedge cells at the moment. But at some point I will need it. Cheers, Adrian -- Dr Adrian Croucher Department of Engineering Science University of Au

[petsc-dev] DMPlexConstructGhostCells() in fortran

2014-04-16 Thread Adrian Croucher
cross any more missing ones. I couldn't spot anything obvious in the git log about how previous ones have been added though. Cheers, Adrian -- Dr Adrian Croucher Department of Engineering Science University of Auckland New Zealand tel 64-9-373-7599 ext 84611

[petsc-dev] DMPlex and scattering

2014-05-04 Thread Adrian Croucher
working as yet. So I'm a bit stuck. Should this approach work with DMPLex, or not? Cheers, Adrian -- Dr Adrian Croucher Senior Research Fellow Department of Engineering Science University of Auckland, New Zealand email: a.crouc...@auckland.ac.nz tel: +64 (0)9 923 4611

[petsc-dev] problem with petscdm.h90

2014-05-11 Thread Adrian Croucher
orf.o CC linux-gnu-c-opt/obj/src/ksp/pc/impls/pbjacobi/pbjacobi.o CC linux-gnu-c-opt/obj/src/ksp/pc/impls/mat/pcmat.o CC linux-gnu-c-opt/obj/src/ksp/pc/impls/cp/cp.o /home/acro018/software/PETSc/code/src/dm/f90-mod/petscdmmod.F:35.11: use petscdm 1 -- Dr A

Re: [petsc-dev] problem with petscdm.h90

2014-05-12 Thread Adrian Croucher
hi Matt, On 13/05/14 00:54, Matthew Knepley wrote: On Sun, May 11, 2014 at 8:46 PM, Adrian Croucher mailto:a.crouc...@auckland.ac.nz>> wrote: hi, I just checkout the latest updates to the next branch, but am getting an error on compiling PETSc- see below. Looks like it'

Re: [petsc-dev] problem with petscdm.h90

2014-05-12 Thread Adrian Croucher
hi again Oh, it might be just a typo in petscdmdef.h, line 21- should be PetscLimiter, not PetscFLimiter ? - Adrian -- Dr Adrian Croucher Senior Research Fellow Department of Engineering Science University of Auckland, New Zealand email: a.crouc...@auckland.ac.nz tel: +64 (0)9 923 4611

Re: [petsc-dev] problem with petscdm.h90

2014-05-12 Thread Adrian Croucher
On 13/05/14 11:39, Adrian Croucher wrote: hi again Oh, it might be just a typo in petscdmdef.h, line 21- should be PetscLimiter, not PetscFLimiter ? That fixes the problem with compiling PETSc. I am getting some warnings now compiling TS ex11 though: /home/acro018/software/PETSc/code/src

Re: [petsc-dev] problem with petscdm.h90

2014-05-19 Thread Adrian Croucher
l *, const PetscReal *, const Petsc Scalar *, const PetscScalar *, PetscScalar *, void *)’ but argument is of type ‘RiemannFunction’ Cheers, Adrian -- Dr Adrian Croucher Senior Research Fellow Department of Engineering Science University of Auckland, New Zealand email: a.crouc...@auckland.ac.n

[petsc-dev] DMPlexAddBoundary

2014-05-20 Thread Adrian Croucher
W() the IDs are {100,101,200,300}. It looks like these IDs define where the BCs are applied, but what do these numbers actually refer to? Thanks! Cheers, Adrian -- Dr Adrian Croucher Senior Research Fellow Department of Engineering Science University of Auckland, New Zealand email: a.crouc...@auckland.ac.nz te

Re: [petsc-dev] DMPlexAddBoundary

2014-05-21 Thread Adrian Croucher
hi On 21/05/14 22:43, Matthew Knepley wrote: On Wed, May 21, 2014 at 12:46 AM, Jed Brown <mailto:j...@jedbrown.org>> wrote: Adrian Croucher mailto:a.crouc...@auckland.ac.nz>> writes: > In the 'PhysicsCreate' functions there are calls to DMPlexAddBoun

[petsc-dev] DMPlexTSSetIFunctionLocal?

2014-05-22 Thread Adrian Croucher
) function? Such a thing doesn't appear to exist at the moment, so I'm just wondering if it is in the pipeline, or if there is already some other way to do this. I see there is a DMTSSetIFunctionLocal(), would that work? Cheers, Adrian -- Dr Adrian Croucher Senior Research Fellow Depar

[petsc-dev] TS ex11 crashing in parallel

2014-05-27 Thread Adrian Croucher
by signals sent by mpirun (as reported here). -- [des108:00604] 1 more process has sent help message help-mpi-api.txt / mpi-abort [des108:00604] Set MCA parameter "orte_base_help_aggregate" to 0 to see all help / error

Re: [petsc-dev] TS ex11 crashing in parallel

2014-05-28 Thread Adrian Croucher
code in C to avoid this issue, but will need to get it going in fortran eventually. Okay, let me know if it works. I will finish going through the ex11 changes by the end of the week. Yes, that's fixed the problem. Thanks! Cheers, Adrian -- Dr Adrian Croucher Senior Research Fellow Dep

Re: [petsc-dev] TS ex11 crashing in parallel

2014-05-28 Thread Adrian Croucher
nload-chaco --download-ctetgen [0]PETSC ERROR: #1 PetscFVCreate() line 1356 in /home/acro018/software/PETSc/code/src/dm/dt/interface/dtfv.c -- Cheers, Adrian -- Dr Adrian Croucher Senior Research Fellow Department of Engine

Re: [petsc-dev] TS ex11 crashing in parallel

2014-05-28 Thread Adrian Croucher
$PETSC_DIR/$PETSC_ARCH/conf/sowing and reconfigure using ./$PETSC_ARCH/conf/reconfigure-$PETSC_ARCH.py OK thanks, I just tried that, but no luck unfortunately- am getting the exact same error message. - Adrian -- Dr Adrian Croucher Senior Research Fellow Department of Engineering Science Uni

Re: [petsc-dev] TS ex11 crashing in parallel

2014-05-29 Thread Adrian Croucher
s the same include as in my little code snippet. The only thing different I can see is the format- I used free format and ex3f90 seems to be fixed format? - Adrian -- Dr Adrian Croucher Senior Research Fellow Department of Engineering Science University of Auckland, New Zealand email: a.crouc...@auck

[petsc-dev] DMPlexCreateExodusFromFile() fortran interface

2014-06-02 Thread Adrian Croucher
heers, Adrian -- Dr Adrian Croucher Senior Research Fellow Department of Engineering Science University of Auckland, New Zealand email: a.crouc...@auckland.ac.nz tel: +64 (0)9 923 4611

Re: [petsc-dev] DMPlexCreateExodusFromFile() fortran interface

2014-06-02 Thread Adrian Croucher
Looks like there are other missing Fortran interfaces: DMSetNumFields() DMSetField() PetscFVSetNumComponents() PetscFVSetSpatialDimension() I have a feeling I might find more yet... Cheers, Adrian -- Dr Adrian Croucher Senior Research Fellow Department of Engineering Science University of

Re: [petsc-dev] DMPlexCreateExodusFromFile() fortran interface

2014-06-03 Thread Adrian Croucher
dices() Cheers, Adrian -- Dr Adrian Croucher Senior Research Fellow Department of Engineering Science University of Auckland, New Zealand email: a.crouc...@auckland.ac.nz tel: +64 (0)9 923 4611

[petsc-dev] compiling PETSc Fortran program with modules

2014-06-04 Thread Adrian Croucher
ne get around this problem? I couldn't find any example problems using Fortran modules. - Adrian -- Dr Adrian Croucher Senior Research Fellow Department of Engineering Science University of Auckland, New Zealand email: a.crouc...@auckland.ac.nz tel: +64 (0)9 923 4611

Re: [petsc-dev] compiling PETSc Fortran program with modules

2014-06-04 Thread Adrian Croucher
ian -- Dr Adrian Croucher Senior Research Fellow Department of Engineering Science University of Auckland, New Zealand email: a.crouc...@auckland.ac.nz tel: +64 (0)9 923 4611

Re: [petsc-dev] compiling PETSc Fortran program with modules

2014-06-05 Thread Adrian Croucher
On 05/06/14 23:14, Matthew Knepley wrote: On Thu, Jun 5, 2014 at 12:56 AM, Adrian Croucher mailto:a.crouc...@auckland.ac.nz>> wrote: OK, I found one way around this- if in test.F90 I replace Can you try just using the finclude/petscdef.h90 headers in the module? Aha, yes tha

[petsc-dev] gradients in DMPlexTS Riemann function

2014-06-09 Thread Adrian Croucher
Riemann function, to get access to the cells supporting the face and their centroid positions- but the way the Riemann function interface is currently set up doesn't appear to allow for that. Or have I got the wrong idea about how one would go about implementing this? - Adrian -- Dr A

[petsc-dev] DMPlexCreateSection from fortran

2014-08-07 Thread Adrian Croucher
uot;y", ierr); CHKERRQ(ierr) call PetscSectionSetUp(section, ierr); CHKERRQ(ierr) call DMSetDefaultSection(dm, section); CHKERRQ(ierr) call PetscSectionDestroy(section, ierr); CHKERRQ(ierr) end subroutine setup_dm_section -- Dr Adrian Croucher Senior Research Fellow Department of Engi

Re: [petsc-dev] DMPlexCreateSection from fortran

2014-08-10 Thread Adrian Croucher
On 09/08/14 06:43, Matthew Knepley wrote: In 'next' I have changed the signature: Aha, thanks, I hadn't noticed that. Cheers, Adrian -- Dr Adrian Croucher Senior Research Fellow Department of Engineering Science University of Auckland, New Zealand email: a.crouc...@auckland

  1   2   >