/**
* Copyright 1981-2012 ECMWF.
*
* This software is licensed under the terms of the Apache Licence 
* Version 2.0 which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
*
* In applying this licence, ECMWF does not waive the privileges and immunities 
* granted to it by virtue of its status as an intergovernmental organisation 
* nor does it submit to any jurisdiction.
*/
#ifndef SHAREDMEMORY_H
#define SHAREDMEMORY_H

#define SP2LL 0
#define SP2RG 1
#define SP2QG 2
#define READY_TO_READ 5
#define SLEEP_TIME 3

#ifdef FORTRAN_NO_UNDERSCORE
#define SMREAD smread
#define NMAKLL nmakll
#define NMAKGG nmakgg
#define JGETGG jgetgg
#define JNUMGG jnumgg
#define JDEBUG jdebug
#else
#define SMREAD smread_
#define NMAKLL nmakll_
#define NMAKGG nmakgg_
#define JGETGG jgetgg_
#define JNUMGG jnumgg_
#define JDEBUG jdebug_
#endif

/*
// Debug flags.
*/
#define DEBUGOFF 1
#define DEBUG (debugSet > DEBUGOFF ) 

#endif /* end of SHAREDMEMORY_H */
