Changeset 38626
- Timestamp:
- Jul 22, 2015, 6:15:27 PM (11 years ago)
- Location:
- branches/eam_branches/ipp-20150625/Ohana/src
- Files:
-
- 4 edited
-
fakeastro/src/fakestar_catalog.c (modified) (1 diff)
-
getstar/src/write_catalog.c (modified) (1 diff)
-
markrock/src/markrock.c (modified) (1 diff)
-
markstar/src/markstar.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20150625/Ohana/src/fakeastro/src/fakestar_catalog.c
r38471 r38626 21 21 insert_fakestar (region, stars, Nstars, &catalog); 22 22 23 dvo_catalog_save (&catalog, VERBOSE); 24 dvo_catalog_unlock (&catalog); 23 SetProtect (TRUE); 24 if (!dvo_catalog_save (&catalog, VERBOSE)) { fprintf (stderr, "ERROR: failed to save %s\n", catalog.filename); exit (1); } 25 if (!dvo_catalog_unlock (&catalog)) { fprintf (stderr, "ERROR: failed to unlock %s\n", catalog.filename); exit (1); } 26 SetProtect (FALSE); 27 25 28 dvo_catalog_free (&catalog); 26 29 -
branches/eam_branches/ipp-20150625/Ohana/src/getstar/src/write_catalog.c
r15539 r38626 5 5 /* write out the selected stars */ 6 6 // XXX need to set the catalog boundaries by hand? RA0-RA1, DEC0-DEC1 7 dvo_catalog_save (catalog, VERBOSE); 8 dvo_catalog_unlock (catalog); 9 dvo_catalog_free (catalog); 7 SetProtect (TRUE); 8 if (!dvo_catalog_save (catalog, VERBOSE)) { fprintf (stderr, "ERROR: failed to save %s\n", catalog->filename); exit (1); } 9 if (!dvo_catalog_unlock (catalog)) { fprintf (stderr, "ERROR: failed to unlock %s\n", catalog->filename); exit (1); } 10 SetProtect (FALSE); 11 dvo_catalog_free (catalog); 10 12 fprintf (stderr, "SUCCESS\n"); 11 13 exit (0); -
branches/eam_branches/ipp-20150625/Ohana/src/markrock/src/markrock.c
r38471 r38626 60 60 61 61 /* rocks2 = find_slow_rocks (&catalog, &catstats, &Nrocks2); */ 62 dvo_catalog_save (&catalog, VERBOSE); 63 dvo_catalog_unlock (&catalog); 62 SetProtect (TRUE); 63 if (!dvo_catalog_save (&catalog, VERBOSE)) { fprintf (stderr, "ERROR: failed to save %s\n", catalog.filename); exit (1); } 64 if (!dvo_catalog_unlock (&catalog)) { fprintf (stderr, "ERROR: failed to unlock %s\n", catalog.filename); exit (1); } 65 SetProtect (FALSE); 66 64 67 dvo_catalog_free (&catalog); 65 68 -
branches/eam_branches/ipp-20150625/Ohana/src/markstar/src/markstar.c
r38471 r38626 68 68 /* find_ghosts (&catalog, &catstats, argv[1], image, Nimage); */ 69 69 70 dvo_catalog_save (&catalog, VERBOSE); 71 dvo_catalog_unlock (&catalog); 70 SetProtect (TRUE); 71 if (!dvo_catalog_save (&catalog, VERBOSE)) { fprintf (stderr, "ERROR: failed to save %s\n", catalog.filename); exit (1); } 72 if (!dvo_catalog_unlock (&catalog)) { fprintf (stderr, "ERROR: failed to unlock %s\n", catalog.filename); exit (1); } 73 SetProtect (FALSE); 74 72 75 dvo_catalog_free (&catalog); 73 76
Note:
See TracChangeset
for help on using the changeset viewer.
