/* Copyright (c) 2001-2016, The Ohio State University. All rights
 * reserved.
 *
 * This file is part of the MVAPICH2 software package developed by the
 * team members of The Ohio State University's Network-Based Computing
 * Laboratory (NBCL), headed by Professor Dhabaleswar K. (DK) Panda.
 *
 * For detailed copyright and licensing information, please refer to the
 * copyright file COPYRIGHT in the top level MVAPICH2 directory.
 */

#include <stdlib.h>

int
check_for_pbs (void)
{
    char * nodefile = getenv("PBS_NODEFILE");

    return nodefile != NULL;
}

char const *
pbs_nodefile (void)
{
    return getenv("PBS_NODEFILE");
}
