Merge branch 'dalcinl/fix-null' into 'master'Sys: Replace 0 -> NULL for pointersSee merge request petsc/petsc!2482
Sys: Replace 0 -> NULL for pointers
Add support for users to pass in FFLAGS the option for promoting integers to 8 bytes.Tested for ifort and gfortranTested with MPICH and OpenMPI and MPI-UniSince MPI does not provide any mechani
Add support for users to pass in FFLAGS the option for promoting integers to 8 bytes.Tested for ifort and gfortranTested with MPICH and OpenMPI and MPI-UniSince MPI does not provide any mechanism for integer promotion the code very crudely adjusts thevalues in the mpif.h to mark them as 4 byte integers this is not neccessary portable for all MPI implementationsThis is an extremely fragile option that we should probably not be supporting.Users must insure their Fortran codes passes only 4 byte integers to MPI callsPETSc Fortran examples were all fixed to explicitly use 4 byte integers for MPI calls.Commit-type: portability-fix, testing-fix, featureTime: 20 hoursReported-by: Dmitry Melnichuk <dmitry.melnichuk@geosteertech.com>
show more ...
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
Update the use of Collective on in the manual pages to reflect the new styleCommit-type: style-fix, documentationThanks-to: Patrick Sanan <patrick.sanan@gmail.com>
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>
windows: enable dlls with fortran build
Options: Code reorganization and faster option lookup* Speedup option lookup by using a auxiliary hash table.* Move many routines around to make the implementation easier to follow. Eventually,
Options: Code reorganization and faster option lookup* Speedup option lookup by using a auxiliary hash table.* Move many routines around to make the implementation easier to follow. Eventually, we may split options.c in two, all of the query routines PetscOptionsGetXXX() do not need (and should not have) access to the PetscOptions data structure.* Restore proper handling of monitors in set/clear option events.* Add PetscOptionsHasHelp(), eventually we may add a "category" argument to do special handling of let say `-help <package>`* Change PetscOptionsReject() to handle option prefix, this makes the call easier to use in XXXSetFromOptions() implementations.
Man pages: add newlines after "Notes:"This allows for proper formatting from sowing.On OS X (using gsed, not the default BSD sed), from the PETSc root directory: find src include -type f \(
Man pages: add newlines after "Notes:"This allows for proper formatting from sowing.On OS X (using gsed, not the default BSD sed), from the PETSc root directory: find src include -type f \( -name "*.c" -or -name "*.h" -or -name "*.cxx" \) | xargs gsed -i 's/Notes\s*:\s*\(\w.*\)/Notes:\n \1/'This adds a newline and 4 spaces whenever "Notes:" is followed by any "word" character, in any .c, .h, or .cxx file in src/ or include/
Change PetscStrncat() to PetscStrlcat() to match BSD API where l represents total lengthUpdate many uses of PetscStrcpy() and PetscStrcat() to the safer PetscStrncpy() and PetscStrlcat()Commit-ty
Change PetscStrncat() to PetscStrlcat() to match BSD API where l represents total lengthUpdate many uses of PetscStrcpy() and PetscStrcat() to the safer PetscStrncpy() and PetscStrlcat()Commit-type: style-fix, featureThanks-to: Jed Brown
Redefine how the n in PetscStrncat() works to make it more useful and not require tracking the current string sizeCommit-type: feature
fix: redundant CHKERRQ() call after SETERRQ()Craycc complained about a stray CHKERRQ after SETERRQ in plextree.cReported-by: Patrick Sanan <patrick.sanan@gmail.com>
configure: add option --with-fortran-bindingsNow one can use --with-fc=gfortran --with-fortran-bindings=0 to detect fortran compiler properly[for externalpacakge use - for eg: scalapack] but avoid
configure: add option --with-fortran-bindingsNow one can use --with-fc=gfortran --with-fortran-bindings=0 to detect fortran compiler properly[for externalpacakge use - for eg: scalapack] but avoid building PETSc fortran bindings in library and modules.Also disable sowing when with-fortran-bindings is disabledFix makefiles (corresponding to fortran bindings) to consistantly use PETSC_HAVE_FORTRANAlso remove unused PETSC_USE_FORTRAN_DATATYPES flagReported-by: Patrick Farrell <patrick.farrell@maths.ox.ac.uk>
fix compile warning due to prototype change in 78fbdcc8da47d2da69f91a746197bf2bceb22ad2
Merge branch 'balay/add-prefix-test'
f90impl.h needs to be available for users with --prefix installationReported-by: Satish Balay <balay@mcs.anl.gov>
Minor cleanup, remove some outdated code, remove unneeded constructs, improve manual pages slightly, add missing test caseTime: 2.5 hours
Remove the use and definition of __FUNCT__ throughout the codeSince all modern C/C++ compilers provide this functionality we no longer need to provide it manually in PETScTime: 1.5 hoursThanks-t
Remove the use and definition of __FUNCT__ throughout the codeSince all modern C/C++ compilers provide this functionality we no longer need to provide it manually in PETScTime: 1.5 hoursThanks-to: Andreas Mang <andreas@ices.utexas.edu>
Remove the needed def extension from Fortran include filesTime: .3 hoursThanks-to: Satish Balay <balay@mcs.anl.gov>
build: --with-fortran-datatypes fixes
made --with-fortran-interfaces by default; cleaned up sys fortran interfacessys fortran interfaces had not previously been tested thus had to clean up several that were brokenTime: 2 hoursRepor
made --with-fortran-interfaces by default; cleaned up sys fortran interfacessys fortran interfaces had not previously been tested thus had to clean up several that were brokenTime: 2 hoursReported-by: nightly tests
sys: Petsc64bitInt -> PetscInt64 [and be consistant with MPIU_INT64]PetscIntMult64bit() -> PetscInt64Mult()PetscBagRegister64bitInt() -> PetscBagRegisterInt64()
Check if Fortran allocations succeedThanks-to: Ondrej Certík <ondrej.certik@gmail.com>
Complete update to new PetscOptions interface
Insure all %g output floating point numbers have a decimal point in them this is to make it easy to detect floating point processing in output for test purposes provided new diff operation that
Insure all %g output floating point numbers have a decimal point in them this is to make it easy to detect floating point processing in output for test purposes provided new diff operation that treats all floating point numbers in output as equal
123456