Add PetscArraycmp(), PetscArraycpy(), PetscArrayzero(), PetscArraymove(), update code to use new formsReplace a couple multi-mallocs with a single mallocReplace backwards loops in MatSetValues_*()
Add PetscArraycmp(), PetscArraycpy(), PetscArrayzero(), PetscArraymove(), update code to use new formsReplace a couple multi-mallocs with a single mallocReplace backwards loops in MatSetValues_*() with PetscArraymove()Commit-type: style-fix, feature
show more ...
Merge branch 'barry/fix-check-ierr-before-freechar/maint' [PR #1220]* barry/fix-check-ierr-before-freechar/maint:Add if (*ierr) return checks for all Fortran stubs that utilize FREECHAR()Otherwis
Merge branch 'barry/fix-check-ierr-before-freechar/maint' [PR #1220]* barry/fix-check-ierr-before-freechar/maint:Add if (*ierr) return checks for all Fortran stubs that utilize FREECHAR()Otherwise the ierr is overwritten by the FREECHAR() thus returning a zero error code when it should not
Add if (*ierr) return checks for all Fortran stubs that utilize FREECHAR()Otherwise the ierr is overwritten by the FREECHAR() thus returning a zero error code when it should notCommit-type: bug-f
Add if (*ierr) return checks for all Fortran stubs that utilize FREECHAR()Otherwise the ierr is overwritten by the FREECHAR() thus returning a zero error code when it should notCommit-type: bug-fixReported-by: Tim Steinhoff <kandanovian@gmail.com>
define also "base name" for functions with multiple interfacesattempt to fix "unresolved external symbol DMDAGETCORNERS" on cygwin64.Capitalization/prepending underscore depends on the compiler
interfaces also for DMDAgetGhostCorners
setting PETSC_NULL for the optional directions (x,y,n,p) caused problemsfollows the example from mat/interface/ftn-custom
add a collection of Fortran interfaces and additional docsFor some reason this cause failures in many examples, need to debugCommit-type: testing-fix,style-fix,documentation, example
enable fortran interface for routines in dasub.c
Minor cleanup, remove some outdated code, remove unneeded constructs, improve manual pages slightly, add missing test caseTime: 2.5 hours
Merge branch 'maint'
Some Fortran stubs that returned strings could produce garbageSome Fortran stubs that returned strings did not properly use FIXRETURNCHAR() to blank out the end of the Fortran string. Thus the Fort
Some Fortran stubs that returned strings could produce garbageSome Fortran stubs that returned strings did not properly use FIXRETURNCHAR() to blank out the end of the Fortran string. Thus the Fortran string would contain "garbage".Time: .2 hoursReported-by: Mark Filipiak <m.filipiak@epcc.ed.ac.uk>
Implemented Barry's comment (no need for work variables on optional arguments).
Added a couple of custom fortran subs to handle optional arguments correctly in 2D and 3D
DMDA: fix DMDASetAOType() fortran interface to handle char argument[Also remove unused code for dmdagetglobalindices_(), dmdarestoreglobalindices_()]Reported-by: Randall Mackie <rlmackie862@gmail.
DMDA: fix DMDASetAOType() fortran interface to handle char argument[Also remove unused code for dmdagetglobalindices_(), dmdarestoreglobalindices_()]Reported-by: Randall Mackie <rlmackie862@gmail.com>Initial-patch-from: Barry Smith <bsmith@mcs.anl.gov>
updated PETSc directory layout to match standard packaging strategiesinclude/petsc finclude,private,mpiunilib/petsc confbin/petsc*
manual merge of conflict
DM: Move dimension up into DM- Both DA and Plex had this and I think it makes sense
remove DMDAGetGlobalIndices() since handled by DMGetLocalToGlobalMapping() followed by ISLocalToGlobalMappingGetIndices()fixed cases where bs of ISLocalToGlobalMapping in Mat did not match matrix bl
remove DMDAGetGlobalIndices() since handled by DMGetLocalToGlobalMapping() followed by ISLocalToGlobalMappingGetIndices()fixed cases where bs of ISLocalToGlobalMapping in Mat did not match matrix block size
removed ltog scatter from DMDA since functionality can be obtained with gtol scatter and less memory
DM: Moved DMDABoundaryTypes to DMBoundaryTypes- Changed the enum values as well- Changed docs and updated Changes- Updated examples
removed idx and Nl from DM_DA object since the dm->ltogmap has the same informationthis eliminates one memory usage of size dof * number of local grid points in DMSetUp_DANeeded to add DMDARestore
removed idx and Nl from DM_DA object since the dm->ltogmap has the same informationthis eliminates one memory usage of size dof * number of local grid points in DMSetUp_DANeeded to add DMDARestoreGlobalIndices() to properly allow access to dm->logmap with DMDAGetGlobalIndices().Though users could use DMGetGlobalToLocalMapping() followed by ISLocalGetGlobalMappingGetIndices() I have retainedDMDAGetGlobalIndices() to the code refactorization is less dramatic; the code could be changed later to eliminateDMDAGetGlobalIndices()
Change all PETSC_EXTERN_C to PETSC_EXTERNHg-commit: 8d2ebbb193fb583bccc64015e35640c4e08c3426
finished all EXTERN_C_BEGIN/END fixes up through Mat including all fortran interface filesHg-commit: a763120ba50023930be975663a3f80c58e415743
daimpl.h was never fixed? Well it is nowHg-commit: a4f3f6d7e4f165ac5276405a089a596a28adc0b3
Uncrustified src/dm/*. No re-uncrustification of un-uncrustified plex.c.Hg-commit: 0eadce41498eb88aa85fb46f989ad9d09bfd9c3e
123