Skip to content
Snippets Groups Projects
Commit ac4f63fb authored by Moe Jette's avatar Moe Jette
Browse files

smap resolve operation also prints slurm node name "bgl123" in addition to

  "X=1 Y=2 Z=3"
parent 8fc1de67
No related branches found
No related tags found
No related merge requests found
/*****************************************************************************\
* configure_functions.c - Functions related to configure mode of smap.
* $Id$
*****************************************************************************
* Copyright (C) 2002 The Regents of the University of California.
* Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
......@@ -256,8 +257,9 @@ static int _resolve(char *com)
if(coord)
sprintf(error_string,
"%s resolves to X=%d Y=%d Z=%d\n",
com+i,coord[X],coord[Y],coord[Z]);
"%s resolves to X=%d Y=%d Z=%d or bgl%d%d%d\n",
com+i,coord[X],coord[Y],coord[Z],
coord[X],coord[Y],coord[Z]);
else
sprintf(error_string, "%s has no resolve.\n",
com+i);
......
......@@ -121,11 +121,10 @@ int main(int argc, char *argv[])
} else {
int *coord = find_bp_loc(params.partition);
if(coord)
printf("%s resolves to X=%d Y=%d Z=%d\n",
printf("%s resolves to X=%d Y=%d Z=%d or bgl%d%d%d\n",
params.partition,
coord[X],
coord[Y],
coord[Z]);
coord[X], coord[Y], coord[Z],
coord[X], coord[Y], coord[Z]);
else
printf("%s has no resolve.\n",
params.partition);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment