Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(par_nur_has_converged): set mpi_world using get_mpi_world() #1304

Merged
merged 3 commits into from
Jul 20, 2023

Conversation

jdhughes-usgs
Copy link
Contributor

  • add test of ex-gwf-bump with and without being split into two models with the flopy model splitter
  • add parallel test of of ex-gwf-bump for one and two processors

* add test of ex-gwf-bump with and without being split into two models with the flopy model splitter
* add parallel test of of ex-gwf-bump for one and two processors
* add test of ex-gwf-bump with and without being split into two models with the flopy model splitter
* add parallel test of of ex-gwf-bump for one and two processors
Copy link
Contributor

@langevin-usgs langevin-usgs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

hclose = 1e-8
hclose_outer = hclose * 10.
rclose = 1e-3
botm = np.loadtxt(pl.Path("data/ex-gwf-bump/bottom.txt")).reshape(shape3d)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This may be fine, but I think we have a project_root_path approach for accessing data paths. This is from the prudic example:

import os
import sys

import flopy
import numpy as np
import pytest
from conftest import project_root_path
from framework import TestFramework
from simulation import TestSimulation

ex = ["prudic2004t2"]
data_path = project_root_path / "autotest" / "data"
model_path = data_path / "prudic2004test2"
fname = str(model_path / "lakibd.dat")
lakibd = np.loadtxt(fname, dtype=int)

chd_spd = [[0, i, 0, H1] for i in range(nrow)]
chd_spd += [[0, i, ncol - 1, H2] for i in range(nrow)]
base_heads = flopy.utils.HeadFile(
pl.Path("data/ex-gwf-bump/results.hds.cmp")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same project_root_path issue here

* add test of ex-gwf-bump with and without being split into two models with the flopy model splitter
* add parallel test of of ex-gwf-bump for one and two processors
@jdhughes-usgs jdhughes-usgs merged commit caf8ef5 into MODFLOW-USGS:develop Jul 20, 2023
20 checks passed
@jdhughes-usgs jdhughes-usgs deleted the fix-parallel-nur branch July 20, 2023 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants