Sierra Toolkit Version of the Day
FieldState.cpp
00001 /*------------------------------------------------------------------------*/
00002 /*                 Copyright 2010 Sandia Corporation.                     */
00003 /*  Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive   */
00004 /*  license for use of this work by or on behalf of the U.S. Government.  */
00005 /*  Export of this program may require a license from the                 */
00006 /*  United States Government.                                             */
00007 /*------------------------------------------------------------------------*/
00008 
00009 #include <stk_mesh/base/FieldState.hpp>
00010 
00011 namespace stk {
00012 namespace mesh {
00013 
00014 //----------------------------------------------------------------------
00015 
00016 const char * field_state_name( FieldState s )
00017 {
00018   static const char * name_list[] = {
00019     "StateNew" ,
00020     "StateOld" ,
00021     "StateNM1" ,
00022     "StateNM2" ,
00023     "StateNM3" ,
00024     "StateNM4" ,
00025     "ERROR" };
00026 
00027   unsigned i = s ;
00028   if ( StateNM4 < i ) { i = MaximumFieldStates ; }
00029   return name_list[i] ;
00030 }
00031 
00032 } //namespace mesh
00033 } //namespace stk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends