IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 18, 2016, 5:07:35 PM (10 years ago)
Author:
eugene
Message:

init the galaxy model which calling setgalmodel

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/uniphot/src/initialize_setphot.c

    r39355 r39356  
    8181  }
    8282
    83   SET_GAL_MODEL = FALSE;
     83  SET_GAL_MODEL = NULL;
    8484  if ((N = get_argument (argc, argv, "-setgalmodel"))) {
    85     SET_GAL_MODEL = TRUE;
    86     remove_argument (N, &argc, argv);
     85    remove_argument (N, &argc, argv);
     86    SET_GAL_MODEL = strcreate (argv[N]);
     87    remove_argument (N, &argc, argv);
     88
     89    if (!InitGalaxyModel (SET_GAL_MODEL)) {
     90      fprintf (stderr, "failed to init galaxy model %s\n", SET_GAL_MODEL);
     91      fprintf (stderr, "valid models: ROESER, FEAST-HIPPARCOS\n");
     92      exit (2);
     93    }
    8794  }
    8895
Note: See TracChangeset for help on using the changeset viewer.