Example #1
0
 void DatabaseIO::handle_groups()
 {
   // Set Grouping requests are specified as properties...
   // See if the property exists and decode...
   // There is a property for each "type":
   // GROUP_SIDESET, GROUP_NODESET, GROUP_EDGESET, GROUP_FACESET,
   // GROUP_ELEMSET.
   // Within the property, the "value" consists of multiple groups separated by
   // ":"
   // Within the group, the names are "," separated:
   //
   // new_surf1,member1,member2,member3:new_surf2,mem1,mem2,mem3,mem4:new_surf3,....
   //
   // Currently does not check for duplicate entity membership in a set --
   // union
   // with duplicates
   //
   create_groups("GROUP_SIDESET", SIDESET, "side", (SideSet *)nullptr);
   create_groups("GROUP_NODESET", NODESET, "node", (NodeSet *)nullptr);
   create_groups("GROUP_EDGESET", EDGESET, "edge", (EdgeSet *)nullptr);
   create_groups("GROUP_FACESET", FACESET, "face", (FaceSet *)nullptr);
   create_groups("GROUP_ELEMSET", ELEMENTSET, "elem", (ElementSet *)nullptr);
 }
Example #2
0
int main( int argc , char ** argv )
{
  printf( "Starting up VoidEye test.\n" );
  init_test( "" );
  update_texture();
  remove_colours();
  update_texture();
  int b , d , a;
  b = find_brightest();
  d = find_darkest();
  a = find_avarage();
  printf( "b: %d d: %d a: %d\n", b , d , a );
  apply_contrast( 256 );
  update_texture();
  create_groups();
  return 0;
}
Example #3
0
static int test_ncache_setup(void **state)
{
    struct ncache_test_ctx *test_ctx;

    assert_true(leak_check_setup());

    test_ctx = talloc_zero(global_talloc_context, struct ncache_test_ctx);
    assert_non_null(test_ctx);

    test_dom_suite_setup(TESTS_PATH);

    test_ctx->tctx = create_dom_test_ctx(test_ctx, TESTS_PATH, TEST_CONF_DB,
                                         TEST_DOM_NAME, "ipa", NULL);
    assert_non_null(test_ctx->tctx);

    create_groups(test_ctx, test_ctx->tctx->dom);
    create_users(test_ctx, test_ctx->tctx->dom);

    check_leaks_push(test_ctx);

    *state = (void *)test_ctx;

    return 0;
}