From c32d5da077b7d543bf1160327291152b70d2029e Mon Sep 17 00:00:00 2001
From: Danny Auble <da@schedmd.com>
Date: Mon, 13 Mar 2017 16:08:43 -0600
Subject: [PATCH] Add TRES_STR_CALC to the mix to be used to determine if we
 need to recreate the tres_alloc_str on a job at the end, dealing with energy.

---
 slurm/slurm.h.in | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/slurm/slurm.h.in b/slurm/slurm.h.in
index 4459426aced..fbb2e370070 100644
--- a/slurm/slurm.h.in
+++ b/slurm/slurm.h.in
@@ -1015,6 +1015,8 @@ enum ctx_keys {
 #define SPREAD_JOB         0x00000100	/* Spread job across max node count */
 #define USE_MIN_NODES      0x00000200	/* Prefer minimum node count */
 #define JOB_KILL_HURRY     0x00000400	/* Avoid burst buffer stage out */
+#define TRES_STR_CALC      0x00000800   /* Avoid calculating TRES strings at the
+					 * end of a job. */
 
 /*****************************************************************************\
  *      SLURM HOSTLIST FUNCTIONS
-- 
GitLab