Changeset 10614 for trunk/psphot/src/psphotSummaryPlots.c
- Timestamp:
- Dec 10, 2006, 8:38:42 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotSummaryPlots.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotSummaryPlots.c
r10400 r10614 5 5 // which perform NOP and return false (XXX should this be true??) 6 6 7 // this variable is defined in psmodules.h if ohana-config is found 7 8 # if (HAVE_KAPA) 8 9 9 10 # include <kapa.h> 10 11 // XXX not thread safe (perhaps not needed)12 // to make this thread safe, we could check the thread ID and tie to it13 static int kapa_fd = -1;14 int psphotKapaOpen () {15 16 if (kapa_fd == -1) {17 // XXX make -noX an option18 // XXX -noX is crashing kapa on point plotting19 kapa_fd = KapaOpen ("kapa", "psphot");20 }21 return kapa_fd;22 }23 24 bool psphotKapaClose () {25 26 if (kapa_fd == -1) return true;27 KapaClose (kapa_fd);28 kapa_fd = -1;29 return true;30 }31 11 32 12 // plot the sx, sy moments plane (faint and bright sources) … … 47 27 psLogMsg ("psphot", 3, "creating moments plot"); 48 28 49 int kapa = p sphotKapaOpen ();29 int kapa = pmKapaOpen (); 50 30 if (kapa == -1) { 51 31 psError(PSPHOT_ERR_UNKNOWN, true, "failure to open kapa"); … … 143 123 psLogMsg ("psphot", 3, "creating psf model plot"); 144 124 145 int kapa = p sphotKapaOpen ();125 int kapa = pmKapaOpen (); 146 126 if (kapa == -1) { 147 127 psError(PSPHOT_ERR_UNKNOWN, true, "failure to open kapa"); … … 297 277 } 298 278 299 int psphotKapaOpen () {300 return -1;301 }302 303 bool psphotKapaClose () {304 return true;305 }306 307 279 # endif
Note:
See TracChangeset
for help on using the changeset viewer.
