31 const int comm_len= 256;
32 char comment[comm_len];
37 #ifdef LIBMESH_HAVE_XDR
79 libmesh_error_msg(
"Unknown m_type" <<
m_type);
92 #ifdef LIBMESH_HAVE_XDR
120 unsigned int temp_n_blocks=0;
121 mp_in >> temp_n_blocks;
123 mp_in.getline(comment, comm_len);
129 libmesh_error_msg(
"Unknown m_type" <<
m_type);
133 std::vector<ElemType> et;
145 #ifdef LIBMESH_HAVE_XDR
152 cast_int<unsigned int>(et.size()),
153 sizeof(
unsigned int),
154 (xdrproc_t) xdr_u_int);
165 mp_out <<
"\t # Element types in each block.\n";
181 et[i] =
static_cast<ElemType>(type) ;
183 mp_in.getline(comment, comm_len);
189 libmesh_error_msg(
"Unknown m_type" <<
m_type);
200 std::vector<unsigned int> neeb;
210 #ifdef LIBMESH_HAVE_XDR
217 cast_int<unsigned int>(neeb.size()),
218 sizeof(
unsigned int),
219 (xdrproc_t) xdr_u_int);
226 for (
unsigned int i=0; i<neeb.size(); i++)
229 mp_out <<
"\t # Num. of elements in each block at each level.\n";
242 mp_in.getline(comment, comm_len);
247 char token[comm_len];
248 std::string s_temp(comment);
249 std::stringstream ss(s_temp);
266 if (!isdigit(token[0]))
267 libmesh_error_msg(
"Error: Unrecognized character detected.");
270 neeb.push_back( std::atoi(token) );
281 libmesh_error_msg(
"Unknown m_type" <<
m_type);
292 libmesh_error_msg(
"Unknown orig_flag " <<
orig_flag);
301 #ifdef LIBMESH_HAVE_XDR
309 cast_int<unsigned int>(std::strlen(temp)) :
318 cast_int<unsigned int>(std::strlen(temp)) :
338 mp_in.getline(comment, comm_len);
343 mp_in.getline(comment, comm_len);
351 libmesh_error_msg(
"Unknown m_type" <<
m_type);
unsigned int get_num_levels()
void get_num_elem_each_block(std::vector< unsigned int > &neeb) const
libmesh_assert(remote_elem)
void set_num_elem_each_block(const std::vector< unsigned int > &neeb)
void get_block_elt_types(std::vector< ElemType > &bet) const
void set_n_blocks(const unsigned int nb)
const char * getTitle() const
unsigned int get_n_blocks() const
const char * getId() const
char * cpyString(const char *src, int len=-1)
void set_block_elt_types(const std::vector< ElemType > &bet)
LegacyXdrIO::FileFormat orig_flag
void setId(const char *id)
void setTitle(const char *title)