

def test_util2d_external_free_path():
    model_ws = os.path.join(out_dir, 'extra_temp')
    if os.path.exists(model_ws):
        shutil.rmtree(model_ws)
    os.mkdir(model_ws)
    ext_path = 'ref'
    if os.path.exists(ext_path):
        shutil.rmtree(model_ws)
    ml = flopy.modflow.Modflow(model_ws=model_ws, external_path=ext_path)
    stress_util2d(ml, 1, 1, 1)
    stress_util2d(ml, 10, 1, 1)
    stress_util2d(ml, 1, 10, 1)
    stress_util2d(ml, 1, 1, 10)
    stress_util2d(ml, 10, 10, 1)
    stress_util2d(ml, 1, 10, 10)
    stress_util2d(ml, 10, 1, 10)
    stress_util2d(ml, 10, 10, 10)

dataset/ETHPy150Open modflowpy/flopy/autotest/t004_test.py test_util2d_external_free_path/VarMisuse@69/97 `ext_path`->`model_ws`