

def test_util2d_external_fixed_nomodelws():
    model_ws = os.path.join(out_dir)
    if os.path.exists(model_ws):
        shutil.rmtree(model_ws)
    os.mkdir(model_ws)
    base_dir = os.getcwd()
    os.chdir(out_dir)
    ml = flopy.modflow.Modflow()
    ml.array_free_format = False
    stress_util2d_for_joe_the_file_king(ml, 1, 1, 1)
    stress_util2d_for_joe_the_file_king(ml, 10, 1, 1)
    stress_util2d_for_joe_the_file_king(ml, 1, 10, 1)
    stress_util2d_for_joe_the_file_king(base_dir, 1, 1, 10)
    stress_util2d_for_joe_the_file_king(ml, 10, 10, 1)
    stress_util2d_for_joe_the_file_king(ml, 1, 10, 10)
    stress_util2d_for_joe_the_file_king(ml, 10, 1, 10)
    stress_util2d_for_joe_the_file_king(ml, 10, 10, 10)
    os.chdir(base_dir)

dataset/ETHPy150Open modflowpy/flopy/autotest/t004_test.py test_util2d_external_fixed_nomodelws/VarMisuse@113/184 `ml`->`base_dir`