added slurm job id print

class-solution
Daniel Pozsar 2 months ago
parent 8dc209be9c
commit d37a543480

Binary file not shown.

@ -115,7 +115,6 @@ def parse_command_line() -> dict:
type=int, type=int,
help="Parameter tuning the distribution on the contour", help="Parameter tuning the distribution on the contour",
) )
parser.add_argument( parser.add_argument(
"--parallel-green", "--parallel-green",
dest="parallel_solver_for_Gk", dest="parallel_solver_for_Gk",
@ -554,5 +553,6 @@ if __name__ == "__main__":
simulation_parameters = process_input_args( simulation_parameters = process_input_args(
DEFAULT_ARGUMENTS, fdf_arguments, command_line_arguments, ACCEPTED_INPUTS DEFAULT_ARGUMENTS, fdf_arguments, command_line_arguments, ACCEPTED_INPUTS
) )
print(simulation_parameters)
# run grogupy
main(simulation_parameters, magnetic_entities, pairs) main(simulation_parameters, magnetic_entities, pairs)

@ -253,7 +253,7 @@ def print_job_description(simulation_parameters: dict) -> None:
"================================================================================================================================================================" "================================================================================================================================================================"
) )
try: try:
print(f"SLURM job ID: {environ["SLURM_JOB_ID"]}") print(f"SLURM job ID: {environ['SLURM_JOB_ID']}")
except: except:
print("SLURM job ID not found.") print("SLURM job ID not found.")
print("Input file: ") print("Input file: ")
@ -314,7 +314,7 @@ def print_parameters(simulation_parameters: dict) -> None:
"================================================================================================================================================================" "================================================================================================================================================================"
) )
try: try:
print(f"SLURM job ID: {environ["SLURM_JOB_ID"]}") print(f"SLURM job ID: {environ['SLURM_JOB_ID']}")
except: except:
print("SLURM job ID not found.") print("SLURM job ID not found.")
print("Input file: ") print("Input file: ")

Loading…
Cancel
Save