Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] View of /branches/vis12/test/hlic/main.c
ViewVC logotype

View of /branches/vis12/test/hlic/main.c

Parent Directory Parent Directory | Revision Log Revision Log

Revision 1741 - (download) (as text) (annotate)
Tue Mar 20 23:21:28 2012 UTC (7 years, 10 months ago) by glk
File size: 643 byte(s)
trying to get a hyperlic (tensor eigenvector lic) example working
/*! \file main.c

#include "hlic.h"

int main (int argc, const char **argv)
    DDRO_World_t *wrld = DDRO_Init ();

    DDRO_SetVerbose (wrld, true);

    DDRO_Initially (wrld);

    uint32_t nSteps = DDRO_Run (wrld, 0);

  // get results
    Nrrd *nData = nrrdNew();
    if (DDRO_Get_out(wrld, nData)) {
      // error
	fprintf(stderr, "Error getting nrrd data: %s\n", ((WorldPrefix_t *)wrld)->err);
	return 1;

    if (nrrdSave("out.nrrd", nData, NULL)) {
        char *err = biffGetDone(NRRD);
        fprintf(stderr, "Trouble saving nrrd struct: %s\n", err);
        return 1;

    DDRO_Shutdown (wrld);

    return 0;

ViewVC Help
Powered by ViewVC 1.0.0