Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
name: Bug report
about: Create a report to help us improve
title: "[BUG]"
labels: bug
assignees: daavid00

---

**Describe the bug and expected behaviour**
A clear and concise description of what the bug is and the expected behaviour.

**To Reproduce**
Steps to reproduce the bug.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. macOS, Ubuntu]
- Version [e.g. Python 3.14, Octave 10.3.0]
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: "[ENHANCEMENT]"
labels: enhancement
assignees: daavid00

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is.

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
10 changes: 10 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
## Description
Describe the changes made and why they were made.

If applicable, include issue(s) this PR addresses (e.g., Closes #711).

Remember to check:
- Code follows project style guidelines.
- Tests have been added or updated to cover the changes.
- Documentation has been updated if necessary.
- All CI/CD checks pass.
3 changes: 3 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ jobs:
sudo apt-get update
sudo apt-get install mpi-default-bin
sudo apt-get install libopm-simulators-bin

- name: Install plotting (LaTeX) dependencies
run: |
sudo apt-get install texlive-fonts-recommended texlive-fonts-extra dvipng cm-super

- name: Install dependecies
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -167,13 +167,15 @@ reference_sgas_i,j,1_t90.png
/tests/regional/OPERNUM_EXPRECCS.INC
/tests/regional/REGIONAL.DBG
/tests/regional/REGIONAL.EGRID
/tests/regional/REGIONAL.ESMRY
/tests/regional/REGIONAL.INIT
/tests/regional/REGIONAL.PRT
/tests/regional/REGIONAL.SMSPEC
/tests/regional/REGIONAL.UNRST
/tests/regional/REGIONAL.UNSMRY
/tests/site/SITE.DBG
/tests/site/SITE.EGRID
/tests/site/SITE.ESMRY
/tests/site/SITE.INIT
/tests/site/SITE.PRT
/tests/site/SITE.SMSPEC
Expand Down
11 changes: 11 additions & 0 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
cff-version: "1.2.0"
message: "If you use this software, please cite it as below."
authors:
- family-names: Landa-Marbán
given-names: David
orcid: "https://orcid.org/0000-0002-3343-1005"
title: "expreccs: A Python framework using OPM Flow to simulate
regional and site reservoirs for CO2 storage"
year: 2024
doi: 10.5281/zenodo.12100600
url: "https://github.com/cssr-tools/expreccs"
89 changes: 89 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
# Contributor Covenant 3.0 Code of Conduct

## Our Pledge

We pledge to make our community welcoming, safe, and equitable for all.

We are committed to fostering an environment that respects and promotes the dignity, rights, and contributions of all individuals, regardless of characteristics including race, ethnicity, caste, color, age, physical characteristics, neurodiversity, disability, sex or gender, gender identity or expression, sexual orientation, language, philosophy or religion, national or social origin, socio-economic position, level of education, or other status. The same privileges of participation are extended to everyone who participates in good faith and in accordance with this Covenant.


## Encouraged Behaviors

While acknowledging differences in social norms, we all strive to meet our community's expectations for positive behavior. We also understand that our words and actions may be interpreted differently than we intend based on culture, background, or native language.

With these considerations in mind, we agree to behave mindfully toward each other and act in ways that center our shared values, including:

1. Respecting the **purpose of our community**, our activities, and our ways of gathering.
2. Engaging **kindly and honestly** with others.
3. Respecting **different viewpoints** and experiences.
4. **Taking responsibility** for our actions and contributions.
5. Gracefully giving and accepting **constructive feedback**.
6. Committing to **repairing harm** when it occurs.
7. Behaving in other ways that promote and sustain the **well-being of our community**.


## Restricted Behaviors

We agree to restrict the following behaviors in our community. Instances, threats, and promotion of these behaviors are violations of this Code of Conduct.

1. **Harassment.** Violating explicitly expressed boundaries or engaging in unnecessary personal attention after any clear request to stop.
2. **Character attacks.** Making insulting, demeaning, or pejorative comments directed at a community member or group of people.
3. **Stereotyping or discrimination.** Characterizing anyone’s personality or behavior on the basis of immutable identities or traits.
4. **Sexualization.** Behaving in a way that would generally be considered inappropriately intimate in the context or purpose of the community.
5. **Violating confidentiality**. Sharing or acting on someone's personal or private information without their permission.
6. **Endangerment.** Causing, encouraging, or threatening violence or other harm toward any person or group.
7. Behaving in other ways that **threaten the well-being** of our community.

### Other Restrictions

1. **Misleading identity.** Impersonating someone else for any reason, or pretending to be someone else to evade enforcement actions.
2. **Failing to credit sources.** Not properly crediting the sources of content you contribute.
3. **Promotional materials**. Sharing marketing or other commercial content in a way that is outside the norms of the community.
4. **Irresponsible communication.** Failing to responsibly present content which includes, links or describes any other restricted behaviors.


## Reporting an Issue

Tensions can occur between community members even when they are trying their best to collaborate. Not every conflict represents a code of conduct violation, and this Code of Conduct reinforces encouraged behaviors and norms that can help avoid conflicts and minimize harm.

When an incident does occur, it is important to report it promptly. To report a possible violation, send an email to dmar@norceresearch.no.

Community Moderators take reports of violations seriously and will make every effort to respond in a timely manner. They will investigate all reports of code of conduct violations, reviewing messages, logs, and recordings, or interviewing witnesses and other participants. Community Moderators will keep investigation and enforcement actions as transparent as possible while prioritizing safety and confidentiality. In order to honor these values, enforcement actions are carried out in private with the involved parties, but communicating to the whole community may be part of a mutually agreed upon resolution.


## Addressing and Repairing Harm

If an investigation by the Community Moderators finds that this Code of Conduct has been violated, the following enforcement ladder may be used to determine how best to repair harm, based on the incident's impact on the individuals involved and the community as a whole. Depending on the severity of a violation, lower rungs on the ladder may be skipped.

1) Warning
1) Event: A violation involving a single incident or series of incidents.
2) Consequence: A private, written warning from the Community Moderators.
3) Repair: Examples of repair include a private written apology, acknowledgement of responsibility, and seeking clarification on expectations.
2) Temporarily Limited Activities
1) Event: A repeated incidence of a violation that previously resulted in a warning, or the first incidence of a more serious violation.
2) Consequence: A private, written warning with a time-limited cooldown period designed to underscore the seriousness of the situation and give the community members involved time to process the incident. The cooldown period may be limited to particular communication channels or interactions with particular community members.
3) Repair: Examples of repair may include making an apology, using the cooldown period to reflect on actions and impact, and being thoughtful about re-entering community spaces after the period is over.
3) Temporary Suspension
1) Event: A pattern of repeated violation which the Community Moderators have tried to address with warnings, or a single serious violation.
2) Consequence: A private written warning with conditions for return from suspension. In general, temporary suspensions give the person being suspended time to reflect upon their behavior and possible corrective actions.
3) Repair: Examples of repair include respecting the spirit of the suspension, meeting the specified conditions for return, and being thoughtful about how to reintegrate with the community when the suspension is lifted.
4) Permanent Ban
1) Event: A pattern of repeated code of conduct violations that other steps on the ladder have failed to resolve, or a violation so serious that the Community Moderators determine there is no way to keep the community safe with this person as a member.
2) Consequence: Access to all community spaces, tools, and communication channels is removed. In general, permanent bans should be rarely used, should have strong reasoning behind them, and should only be resorted to if working through other remedies has failed to change the behavior.
3) Repair: There is no possible repair in cases of this severity.

This enforcement ladder is intended as a guideline. It does not limit the ability of Community Managers to use their discretion and judgment, in keeping with the best interests of our community.


## Scope

This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public or other spaces. Examples of representing our community include using an official email address, posting via an official social media account, or acting as an appointed representative at an online or offline event.


## Attribution

This Code of Conduct is adapted from the Contributor Covenant, version 3.0, permanently available at [https://www.contributor-covenant.org/version/3/0/](https://www.contributor-covenant.org/version/3/0/).

Contributor Covenant is stewarded by the Organization for Ethical Source and licensed under CC BY-SA 4.0. To view a copy of this license, visit [https://creativecommons.org/licenses/by-sa/4.0/](https://creativecommons.org/licenses/by-sa/4.0/)

For answers to common questions about Contributor Covenant, see the FAQ at [https://www.contributor-covenant.org/faq](https://www.contributor-covenant.org/faq). Translations are provided at [https://www.contributor-covenant.org/translations](https://www.contributor-covenant.org/translations). Additional enforcement and community guideline resources can be found at [https://www.contributor-covenant.org/resources](https://www.contributor-covenant.org/resources). The enforcement ladder was inspired by the work of [Mozilla’s code of conduct team](https://github.com/mozilla/inclusion).
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pip install -e .
pip install -r dev-requirements.txt
```

See the [_installation_](https://cssr-tools.github.io/exprecss/installation.html) for further details on installing binaries or building OPM Flow from the master branches in Linux, Windows, and macOS, as well as the opm Python package and LaTeX dependencies.
See the [_installation_](https://cssr-tools.github.io/exprecss/installation.html) for further details on installing binaries or building OPM Flow from the master branches in Linux, Windows, and macOS, as well as the (optional) LaTeX dependencies.

## Running expreccs
You can run _expreccs_ as a single command line:
Expand Down
40 changes: 40 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Security Policy

## Supported Versions

We only provide security updates for the following versions:

* **Version 2025.10** (Current Stable)

## Reporting a Vulnerability

We take security vulnerabilities seriously and appreciate your efforts to responsibly disclose them. To report a vulnerability, please follow these steps:

1. **Do not open a public GitHub issue.** This could expose the vulnerability to malicious actors before a fix is available.
2. **Email us directly at `dmar@norceresearch.no`**.
3. **Provide detailed information:**
* A clear description of the vulnerability.
* Steps to reproduce the vulnerability.
* The affected versions of the project.
* Any potential impact or exploit scenarios.
* Your contact information for follow-up.

## Our Disclosure Policy

Upon receiving a security bug report, we will:

1. **Acknowledge receipt** within 24-72 hours.
2. **Confirm the problem** and determine affected versions.
3. **Work on a fix** for all supported releases.
4. **Coordinate a release** with the fix.
5. **Publicly acknowledge your contribution** (with your permission) after the fix is released.

## Responsible Disclosure

We kindly request that you:

* **Do not publicly disclose the vulnerability** until we have released a fix.
* **Allow us a reasonable amount of time** to address the issue before public disclosure.
* **Do not engage in any actions** that could harm our users or systems during your research.

Thank you for helping to keep our project secure.
5 changes: 2 additions & 3 deletions docs/_sources/installation.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ You also need to install:
.. tip::

See the `CI.yml <https://github.com/cssr-tools/expreccs/blob/main/.github/workflows/CI.yml>`_ script
for installation of OPM Flow (binary packages) and the expreccs package in Ubuntu.
for installation of OPM Flow (binary packages), LaTeX (optional) libraries, and the expreccs package in Ubuntu 24.04 and Python 3.11.

Source build in Linux/Windows
+++++++++++++++++++++++++++++
Expand Down Expand Up @@ -136,5 +136,4 @@ then building OPM Flow can be achieved with the following bash lines:

This builds OPM Flow, and it exports the path to the flow executable (i.e., executing in the terminal **which flow** should print the path).

For macOS, the LaTeX dependency can be installed from https://www.tug.org/mactex/. If after installation you still face an error due to LaTeX
when executing expreccs, then add the flag **-latex 0** to expreccs.
For macOS, the (optional but recommended) LaTeX dependency can be installed from https://www.tug.org/mactex/.
1 change: 0 additions & 1 deletion docs/_sources/introduction.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ where
-f Frequency to evaluate the boundary pressures on the site between report steps in the site. Write an array, e.g., '2,7,3', to set the frequency in each site report step ('1' by default).
-a Exponential 'a' coefficient for the telescopic time-discretization for the given frequency '-f'. Write an array, e.g., '2.2,0,3.1', to set the coefficient in each site report step ('3.2' by default, use 0 for an equidistance partition).
-w Set to 1 to print warnings ('0' by default).
-l Set to 0 to not use LaTeX formatting ('1' by default).
-e Set to 0 to write the pressure increase on the site bc from the regional values ('1' by default, i.e., the pressure values on the boundaries correspond to the explicit values on the regional simulations).
-z Set to 1 to project the regional pressures per fipnum zones, i.e., the pressure maps to the site bcs are written for equal fipnum numbers in the whole xy layer ('0' by default, i.e., the projections include the z location offset between regional and site models).
-s Set to 0 to not create the subfolders preprocessing, output, and postprocessing, i.e., to write all generated files in the output directory ('1' by default).
Expand Down
4 changes: 2 additions & 2 deletions docs/_sources/tccs-13.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ and adapt those files to the ones in the `tccs-13 folder <https://github.com/css

You should not run the ORIGINAL.DATA file before adapting it with the actual Troll aquifer model, since it has a lot of active cells.

For the first figures, `plopm <https://github.com/cssr-tools/plopm.git>`_ and `pycopm <https://github.com/cssr-tools/pycopm.git>`_ are used, which can be installed by:
For the first figures, `plopm <https://github.com/cssr-tools/plopm>`_ and `pycopm <https://github.com/cssr-tools/pycopm>`_ are used, which can be installed by:

.. code-block:: bash

pip install git+https://github.com/cssr-tools/plopm.git
pip install git+https://github.com/cssr-tools/pycopm.git

To run the optimization, `Everest <https://github.com/equinor/everest-tutorials>`_ is needed,
which is installed via `ert <https://github.com/equinor/ert>`_ when `pycopm <https://github.com/cssr-tools/pycopm>`_ is installed with the command above.
which is installed via `ert <https://github.com/equinor/ert>`_ when pycopm is installed with the command above.

.. note::

Expand Down
5 changes: 2 additions & 3 deletions docs/installation.html
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ <h2>OPM Flow<a class="headerlink" href="#opm-flow" title="Link to this heading">
<div class="admonition tip">
<p class="admonition-title">Tip</p>
<p>See the <a class="reference external" href="https://github.com/cssr-tools/expreccs/blob/main/.github/workflows/CI.yml">CI.yml</a> script
for installation of OPM Flow (binary packages) and the expreccs package in Ubuntu.</p>
for installation of OPM Flow (binary packages), LaTeX (optional) libraries, and the expreccs package in Ubuntu 24.04 and Python 3.11.</p>
</div>
<section id="source-build-in-linux-windows">
<h3>Source build in Linux/Windows<a class="headerlink" href="#source-build-in-linux-windows" title="Link to this heading"></a></h3>
Expand Down Expand Up @@ -209,8 +209,7 @@ <h3>Source build in Linux/Windows<a class="headerlink" href="#source-build-in-li
</pre></div>
</div>
<p>This builds OPM Flow, and it exports the path to the flow executable (i.e., executing in the terminal <strong>which flow</strong> should print the path).</p>
<p>For macOS, the LaTeX dependency can be installed from <a class="reference external" href="https://www.tug.org/mactex/">https://www.tug.org/mactex/</a>. If after installation you still face an error due to LaTeX
when executing expreccs, then add the flag <strong>-latex 0</strong> to expreccs.</p>
<p>For macOS, the (optional but recommended) LaTeX dependency can be installed from <a class="reference external" href="https://www.tug.org/mactex/">https://www.tug.org/mactex/</a>.</p>
</section>
</section>
</section>
Expand Down
3 changes: 0 additions & 3 deletions docs/introduction.html
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,6 @@ <h2>Concept<a class="headerlink" href="#concept" title="Link to this heading">
<dt><kbd><span class="option">-w</span></kbd></dt>
<dd><p>Set to 1 to print warnings (‘0’ by default).</p>
</dd>
<dt><kbd><span class="option">-l</span></kbd></dt>
<dd><p>Set to 0 to not use LaTeX formatting (‘1’ by default).</p>
</dd>
<dt><kbd><span class="option">-e</span></kbd></dt>
<dd><p>Set to 0 to write the pressure increase on the site bc from the regional values (‘1’ by default, i.e., the pressure values on the boundaries correspond to the explicit values on the regional simulations).</p>
</dd>
Expand Down
2 changes: 1 addition & 1 deletion docs/searchindex.js

Large diffs are not rendered by default.

Loading