petsc | http : //www.mcs.anl.gov/petsc/

 by   qsnake C Version: Current License: No License

kandi X-RAY | petsc Summary

kandi X-RAY | petsc Summary

petsc is a C library. petsc has no bugs, it has no vulnerabilities and it has low support. You can download it from GitHub.

http://www.mcs.anl.gov/petsc/
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              petsc has a low active ecosystem.
              It has 5 star(s) with 3 fork(s). There are 3 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              petsc has no issues reported. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of petsc is current.

            kandi-Quality Quality

              petsc has no bugs reported.

            kandi-Security Security

              petsc has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              petsc does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              petsc releases are not available. You will need to build from source code and install.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of petsc
            Get all kandi verified functions for this library.

            petsc Key Features

            No Key Features are available at this moment for petsc.

            petsc Examples and Code Snippets

            No Code Snippets are available at this moment for petsc.

            Community Discussions

            QUESTION

            Compiling a C++ code including PETSc libraries. make: No rule to make target error message
            Asked 2021-Apr-25 at 14:04

            I am interested in using the open source code discussed here. The framework and some instruction on how to run the code is discussed here. To be able to use the code one should first install PETSc. I have done this and it seems to be correctly installed. The problem rises when I try to run make topopt following the instructions given in the paper (section 2.2). On the GitHub there exists a makefile_ref where following the instructions given in the paper I make the following changes: PETSC_DIR=\home\myusername\petsc and PETSC_ARCH=arch-linux-c-debug. After running make -d topopt I get the following error:

            ...

            ANSWER

            Answered 2021-Apr-20 at 20:16

            there exists a makefile_ref where following the instructions given in the paper I make the following changes [...]

            Absent an explicit option specifying a makefile to read, the make utility looks for input files by several alternative names. makefile_ref is not one of them. I take the "_ref" part of the filename as mnemonic for "reference", and from that perspective the intention appears to be that you copy makefile_ref to, say, makefile (one of the file names that make does look for by default), and modify the copy to be appropriate for your environment.

            Source https://stackoverflow.com/questions/67167502

            QUESTION

            Switch from MPICH to OpenMPI
            Asked 2021-Mar-09 at 10:34

            I have both mpich and openmpi in my Ubuntu 20.04.

            ...

            ANSWER

            Answered 2021-Mar-09 at 10:34

            It seems all alternatives, except for one (link group mpi), were already set for openmpi

            Source https://stackoverflow.com/questions/66535019

            QUESTION

            PETSc memory corruption on using DMDAVecGetArray
            Asked 2021-Mar-05 at 09:00

            I'm trying to use PETSc's DMDA Vectors with 2 degrees of freedom and access them using struct, like in the manual. However, when I try to use DMDAVecGetArray even with one degree of freedom (like in example below) I get memory double free or corruption error. When I replace DMDAVecGetArray with VecGetArray everything works just fine.

            What causes this error?

            Compile MWE with

            ...

            ANSWER

            Answered 2021-Mar-05 at 09:00

            Ok, found the problem. The key difference here is that when using VecGetArray underlying array is indexed using local indexes, and when using DMDAVecGetArray global indexes are used.

            So, in order to fix the code I have to get not only the size of the array, but also the first index of the local vector portion.

            Using function

            Source https://stackoverflow.com/questions/66478845

            QUESTION

            PETSc vectorize operations with neighboring vector values
            Asked 2021-Mar-02 at 22:33

            I'm implementing finite difference algorithm from uFDTD book. Many FDM equations involve operations on adjoined vector elements. For example, an update equation for electric field

            ...

            ANSWER

            Answered 2021-Mar-02 at 22:33

            If my goal was efficiency, I would call a stencil engine. There are many many many papers, and sometimes even open source code, for example, Devito. The idea is that PETSc manages the data structure and parallelism. Then you can feed the local data brick to your favorite stencil computer.

            Source https://stackoverflow.com/questions/66428936

            QUESTION

            g++ unrecognized debug output level 'db' error while compiling
            Asked 2021-Feb-02 at 04:56

            I am trying to use some open source program, and I typed 'make data' to create 'data' file, but it created following response with error

            ...

            ANSWER

            Answered 2021-Feb-02 at 04:56

            The -gdb is not a valid GCC argument, and that is exactly what the error tells you.

            Use -ggdb instead.

            Update:

            /usr/bin/ld: cannot find -l/home/songyi719/Desktop/Research/petsc-3.1-p6/installation_folder/include

            Did you write the Makefile yourself?

            This is wrong: ... -l$(PETSCINC) -l$(TECINC) -l$(HYPREINC) ...

            All of these -ls should be -Is instead: ... -I$(PETSCINC) -I$(TECINC) -I$(HYPREINC) ...

            Update2:

            Actually, since this is a link command and there are no sources being complied here, all of these: -I$(PETSCINC) -I$(TECINC) -I$(HYPREINC) should be deleted instead (just from the link command).

            Source https://stackoverflow.com/questions/66002835

            QUESTION

            Header files not found by 'make'
            Asked 2020-Dec-09 at 20:20

            The make instruction is not finding the libraries required for compilation. They are in other folder than the usual /usr/include folder.

            I'm complying a simulation software called magnum.fe I already installed all the required dependencies (FEniCS = 1.5 CMake >= 2.8 SWIG >= 2.0 G++ >= 4.0) and started to run make as the instructions suggest.

            ...

            ANSWER

            Answered 2020-Dec-09 at 20:20

            I've made it!

            There are two options available:

            Specify the libraries to use with the make command editing the MAKEfile, use the variable LDLIBS to set it up. Detailed usage in here: https://web.archive.org/web/20070723140628/http://arco.inf-cr.uclm.es/~david.villa/doc/repo/make/make.html#AEN36

            or

            Create symbolic links pointing to /usr/include. In my case I used:

            Source https://stackoverflow.com/questions/65160066

            QUESTION

            Compile petsc included code using a makefile, failed for '.f90' but passed for '.F90'
            Asked 2020-Aug-17 at 06:50

            I'm leaning petsc (3.13.1) on a Linux virtual machine. The compiler is mpich-3.2.1 compiled with gfortran.

            While going through the tutorials I found the extensinos are .F90, the files did not work after I changed the ext to .f90.

            I added some rules for .f90 in the makefile, still, it did not work.

            I'm wondering how to revise makefile for the .f90 extensions.

            Test codes:

            ...

            ANSWER

            Answered 2020-Aug-17 at 06:50

            Thanks for Mark and evets. I fix it by adding the -cpp flag to FFLAGS after checking the preprocessing part of the manual https://linux.die.net/man/1/gfortran

            The makefile revised part:

            Source https://stackoverflow.com/questions/63444530

            QUESTION

            How to pass array of PETSc Vec to a function
            Asked 2020-Jul-23 at 07:48

            I am trying to pass an array of Vec's in PETSc to a function, modify it internally and retrieve the results. A pseudocode is as follows:

            ...

            ANSWER

            Answered 2020-Jul-23 at 07:48

            There were two problems: 1) The address of the pointer *y was not passed to foo [@Chase] . 2) a double pointer call would solve the issue in VecNorm within foo()

            Source https://stackoverflow.com/questions/63027572

            QUESTION

            There has been an error in the installation of petcs. How to solve it?
            Asked 2020-Apr-16 at 03:38

            Computer configuration: my computer is maosx system, in the virtual machine installed ubuntu, the original system install ladder (VPN), Linux did not install a successful ladder (VPN).

            Environment configuration: install petsc in the virtual machine, download and unpack petsc software package, install GCC, gfortran, and download MPI and BLAS/LAPACK separately before, but there was an error when installing MPI. .

            ...

            ANSWER

            Answered 2020-Apr-15 at 18:33

            As Satish said in email, your machine likely ran out of memory. gfortran can take more the 2GB of RAM when compiling. An alternative, if you do not need Fortran, is to configure using --with-fc=0.

            Source https://stackoverflow.com/questions/61232815

            QUESTION

            Issue installing petsc4py with Anaconda using pip, to indicate external PETSc directory
            Asked 2020-Apr-04 at 15:49
            I) The issue

            I cannot install petsc4py in my Anaconda environment using pip.

            Installing with conda doesn't work because it won't check my predefined PETSC_DIR and PETSC_ARCH environment variables during installation. numpy and cython are installed.

            The error output by pip install is shown in section IV, below.

            II) Versions

            I have Ananconda 2020.02, installed with Python 3.7. My OS is Ubuntu 18.04.

            III) Reproducing the issue 1) Make a user installation of OpenMPI 4.0.3

            Configured using

            ...

            ANSWER

            Answered 2020-Apr-04 at 15:49

            I was trying to install petsc4py with the then latest released version 3.12.0 while having installed and configured PETSc version 3.13.0. This now seems quite obvious that it wouldn't work, but there wasn't a clear mention of this in the documentation.

            You can either install the none-released version using pip install https://bitbucket.org/petsc/petsc4py/issues/137/error-installing-in-anaconda-environment OR wait for it to be released officially!

            Important conclusion

            Make sure that your version of PETSc is the same as petsc4py!

            Source https://stackoverflow.com/questions/61018455

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install petsc

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/qsnake/petsc.git

          • CLI

            gh repo clone qsnake/petsc

          • sshUrl

            git@github.com:qsnake/petsc.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link