mole-fork
Science Score: 67.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 7 DOI reference(s) in README -
✓Academic publication links
Links to: joss.theoj.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (14.0%) to scientific vocabulary
Repository
Basic Info
- Host: GitHub
- Owner: pritkc
- License: gpl-3.0
- Language: MATLAB
- Default Branch: master
- Size: 44.9 MB
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
MOLE: Mimetic Operators Library Enhanced
Description
MOLE is a high-quality (C++ & MATLAB/Octave) library that implements high-order mimetic operators to solve partial differential equations. It provides discrete analogs of the most common vector calculus operators: Gradient, Divergence, Laplacian, Bilaplacian, and Curl. These operators (highly sparse matrices) act on staggered grids (uniform, non-uniform, curvilinear) and satisfy local and global conservation laws.
Mathematics is based on the work of Corbino and Castillo. However, the user may find helpful previous publications, such as Castillo and Grone, in which similar operators were derived using a matrix analysis approach.
Installation
Prerequisites
To install the MOLE library, you'll need the following packages:
- CMake (Minimum version 3.10)
- OpenBLAS (Minimum version 0.3.10)
- Eigen3
- LAPACK (Mac only)
- libomp (Mac only)
For documentation build requirements, please refer to the Documentation Guide.
Package Installation by OS
Ubuntu/Debian Systems
```bash
Install all required packages
sudo apt install cmake libopenblas-dev libeigen3-dev ```
macOS Systems
Install Homebrew if you don't have it already, then run:
```bash
Install all required packages
brew install cmake openblas eigen libomp lapack ```
Troubleshooting Homebrew: If you encounter installation errors, try these steps: ```bash
Fix permissions issues
sudo chown -R $(whoami) /usr/local/Cellar
Fix shallow clone issues
git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow
Remove Java dependencies if they cause conflicts
brew uninstall --ignore-dependencies java brew update ```
RHEL/CentOS/Fedora Systems
```bash
Install all required packages
sudo yum install cmake openblas-devel eigen3-devel ```
Building and Installing
Clone the repository:
bash git clone https://github.com/csrc-sdsu/mole.git cd moleBuild the library:
bash mkdir build && cd build cmake .. makeInstall the library:
- For a custom location:
bash cmake --install . --prefix /path/to/location - For a system location (requires privileges):
bash sudo cmake --install .Orbash sudo cmake --install . --prefix /path/to/privileged/location
- For a custom location:
Note: Armadillo and SuperLU will be automatically installed in the build directory during the build process.
Testing
Run from the build directory:
C++
A suite of four automatic tests that verify MOLE's installation and dependencies. These tests run automatically during the C++ library construction.
bash
make run_tests
MATLAB/Octave
MATLAB/Octave equivalent of the C++ test suite. We recommend running these tests before using MOLE to ensure proper setup.
matlab
make run_matlab_tests
Examples
C++
Four self-contained, well-documented examples demonstrating typical PDE solutions. These are automatically built with make and serve as an excellent starting point for C++ users.
MATLAB/Octave Examples
A collection of over 30 examples showcasing various PDE solutions, from simple linear one-dimensional problems to complex nonlinear multidimensional scenarios.
Documentation
MOLE comes with comprehensive documentation:
- API Reference & User Guide: Access our online Documentation
- Building Documentation: To build documentation locally, follow our Documentation Guide.
Important Note: Performing non-unary operations involving operands constructed over different grids may lead to unexpected results. While MOLE allows such operations without throwing errors, users must exercise caution when manipulating operators across different grids.
Licensing
MOLE is distributed under a GNU General Public License; please refer to the LICENSE file for more details.
Community Guidelines
We welcome contributions to MOLE, including: - Adding new functionalities - Providing examples - Addressing existing issues - Reporting bugs - Requesting new features
Please refer to our Contribution Guidelines for more details.
Citations
Please cite our work if you use MOLE in your research or software. Citations are helpful for the continued development and maintenance of the library.
Gallery
Now, some cool pictures obtained with MOLE:

Owner
- Name: Prit Chakalasiya
- Login: pritkc
- Kind: user
- Twitter: Prit_txt
- Repositories: 1
- Profile: https://github.com/pritkc
Citation (CITATION.cff)
cff-version: "1.2.0"
authors:
- family-names: Corbino
given-names: Johnny
orcid: "https://orcid.org/0000-0002-2638-9216"
- family-names: Dumett
given-names: Miguel A.
- family-names: Castillo
given-names: Jose E.
contact:
- family-names: Corbino
given-names: Johnny
orcid: "https://orcid.org/0000-0002-2638-9216"
doi: 10.5281/zenodo.12752946
message: If you use this software, please cite our article in the
Journal of Open Source Software.
preferred-citation:
authors:
- family-names: Corbino
given-names: Johnny
orcid: "https://orcid.org/0000-0002-2638-9216"
- family-names: Dumett
given-names: Miguel A.
- family-names: Castillo
given-names: Jose E.
date-published: 2024-07-17
doi: 10.21105/joss.06288
issn: 2475-9066
issue: 99
journal: Journal of Open Source Software
publisher:
name: Open Journals
start: 6288
title: "MOLE: Mimetic Operators Library Enhanced"
type: article
url: "https://joss.theoj.org/papers/10.21105/joss.06288"
volume: 9
title: "MOLE: Mimetic Operators Library Enhanced"
GitHub Events
Total
- Push event: 9
- Create event: 3
Last Year
- Push event: 9
- Create event: 3
Dependencies
- actions/checkout v2 composite
- actions/upload-artifact v2 composite
- openjournals/openjournals-draft-action master composite
- actions/checkout v3 composite
- actions/checkout v4 composite
- actions/setup-python v5 composite
- peaceiris/actions-gh-pages v3 composite
- actions/checkout v4 composite
- super-linter/super-linter v5 composite
- Pillow *
- altair >=5.0
- breathe >=4.30
- docutils >=0.18
- myst-parser >=0.14.0
- setuptools *
- sphinx >=5.3,<7
- sphinx-design *
- sphinx-hoverxref >=0.3b1
- sphinx_rtd_theme >=1.0
- sphinxcontrib-bibtex >=2.5
- sphinxcontrib-htmlhelp *
- sphinxcontrib-katex *
- sphinxcontrib-matlabdomain >=0.22.0,<0.23.0
- sphinxcontrib-serializinghtml *
- sphinxext-altair *
- standard-imghdr *