xmjiao / petsc4m-legacy Goto Github PK
View Code? Open in Web Editor NEWPETSc Interface for Octave and MATLAB (Deprecated)
License: Other
PETSc Interface for Octave and MATLAB (Deprecated)
License: Other
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!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.