WarpX
Variables
updateAMReX Namespace Reference

Variables

 ConfigUpdater = None
 
 REPO_DIR = Path(__file__).parent.parent.parent.absolute()
 
 REPLY = input("Are you sure you want to continue? [y/N] ")
 
 amrex_gh = requests.get('https://api.github.com/repos/AMReX-Codes/amrex/commits/development')
 
 amrex_HEAD = amrex_gh.json()["sha"]
 
 amrex_cmake_path = str(REPO_DIR.joinpath("cmake/dependencies/AMReX.cmake"))
 
string amrex_branch = f"unknown (format issue in {amrex_cmake_path})"
 
 encoding
 
 r_minimal
 
string amrex_minimal = f"unknown (format issue in {amrex_cmake_path})"
 
 amrex_new_branch = input(f"Update AMReX commit/branch/sha: ").strip()
 
 today = datetime.date.today().strftime("%y.%m")
 
 amrex_new_minimal = input(f"New minimal AMReX version (e.g. {today})? ").strip()
 
 run_test_path = str(REPO_DIR.joinpath("run_test.sh"))
 
 run_test_content = f.read()
 
 ci_gnumake_path = str(REPO_DIR.joinpath(".github/workflows/cuda.yml"))
 
 ci_gnumake_content = f.read()
 
 tests_ini_path = str(REPO_DIR.joinpath("Regression/WarpX-tests.ini"))
 
 cp = ConfigUpdater()
 
 optionxform
 
 value
 
 tests_gpu_ini_path = str(REPO_DIR.joinpath("Regression/WarpX-GPU-tests.ini"))
 
 amrex_cmake_content = f.read()
 

Variable Documentation

◆ amrex_branch

updateAMReX.amrex_branch = f"unknown (format issue in {amrex_cmake_path})"

◆ amrex_cmake_content

updateAMReX.amrex_cmake_content = f.read()

◆ amrex_cmake_path

updateAMReX.amrex_cmake_path = str(REPO_DIR.joinpath("cmake/dependencies/AMReX.cmake"))

◆ amrex_gh

updateAMReX.amrex_gh = requests.get('https://api.github.com/repos/AMReX-Codes/amrex/commits/development')

◆ amrex_HEAD

updateAMReX.amrex_HEAD = amrex_gh.json()["sha"]

◆ amrex_minimal

updateAMReX.amrex_minimal = f"unknown (format issue in {amrex_cmake_path})"

◆ amrex_new_branch

string updateAMReX.amrex_new_branch = input(f"Update AMReX commit/branch/sha: ").strip()

◆ amrex_new_minimal

string updateAMReX.amrex_new_minimal = input(f"New minimal AMReX version (e.g. {today})? ").strip()

◆ ci_gnumake_content

updateAMReX.ci_gnumake_content = f.read()

◆ ci_gnumake_path

updateAMReX.ci_gnumake_path = str(REPO_DIR.joinpath(".github/workflows/cuda.yml"))

◆ ConfigUpdater

updateAMReX.ConfigUpdater = None

◆ cp

updateAMReX.cp = ConfigUpdater()

◆ encoding

updateAMReX.encoding

◆ optionxform

updateAMReX.optionxform

◆ r_minimal

updateAMReX.r_minimal
Initial value:
1 = re.findall(r'.*set\‍(WarpX_amrex_branch\s+"(.+)"\s+.*',
2  f.read(), re.MULTILINE)

◆ REPLY

updateAMReX.REPLY = input("Are you sure you want to continue? [y/N] ")

◆ REPO_DIR

updateAMReX.REPO_DIR = Path(__file__).parent.parent.parent.absolute()

◆ run_test_content

updateAMReX.run_test_content = f.read()

◆ run_test_path

updateAMReX.run_test_path = str(REPO_DIR.joinpath("run_test.sh"))

◆ tests_gpu_ini_path

updateAMReX.tests_gpu_ini_path = str(REPO_DIR.joinpath("Regression/WarpX-GPU-tests.ini"))

◆ tests_ini_path

updateAMReX.tests_ini_path = str(REPO_DIR.joinpath("Regression/WarpX-tests.ini"))

◆ today

updateAMReX.today = datetime.date.today().strftime("%y.%m")

◆ value

updateAMReX.value