Code Monkey home page Code Monkey logo

petsc4m-legacy's People

Contributors

xmjiao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

petsc4m-legacy's Issues

Why the solvers provided by petsc run much slower than that provided by matlab itself

Thanks for your great work! What you did is exactly what I'm looking for!
I have added your work into my work, and I can also reproduce the example you provided in readme. But it runs quite slowly.
The following is how I build the program.
cd petsc4m;
startup;
build_petsc('-I/data2/DG/RGQ/ThirdParty/mpich/include','-omp'); %Here, the path to the head file of mpich is appointed
%explicitly, or the program will hault with error that mpi.h can't be found;
%'-omp' is also included since my program runs on a cluster with 72
% cores, and the environment variable OMP_NUM_THREADS is set to
% be 72.
init_petsc;

I run a test case after initialization of the program. The time elapsed is 232.30 seconds for the direct solver provided by matlab,
while it takes 1478.16 seconds when use SuperLU as a direct solver. And the time is even much longer for other solvers provided
in the readme file.
Do you have any idea about this?
Thanks in advance!
Best regards!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.