56 const unsigned NI = 100;
57 const unsigned NJ = 100;
84 const double DX = 0.1;
85 const double DY = 0.1;
87 for(
unsigned i = 0; i < NI + 1; i++ )
88 for(
unsigned j = 0; j < NJ + 1; j++ )
94 double coord[3] = { DX * i, DY * j, 0.0 };
116 double temp_default_value = 0.0;
121 double vel_default_value[2] = { 0.0, 0.0 };
123 vel_default_value );
MB_CHK_SET_ERR( rval,
"mbint.tag_get_handle(velocity) failed" );
146 for(
unsigned i = 0; i < NI; i++ )
147 for(
unsigned j = 0; j < NJ; j++ )
153 double xc = DX * ( i + 0.5 );
154 double yc = DY * ( j + 0.5 );
155 double r = std::sqrt( xc * xc + yc * yc );
156 double temperature = std::exp( -0.5 * r );
159 rval = mbint.
tag_set_data( temp_tag, &handle, 1, &temperature );
MB_CHK_SET_ERR( rval,
"mbint.tag_set_data(temp_tag) failed" );
163 for(
unsigned i = 0; i < NI + 1; i++ )
164 for(
unsigned j = 0; j < NJ + 1; j++ )
168 double velocity[2] = { i, j };