chiark / gitweb /
can rescale
[moebius2.git] / common.c
index 900102513cf2c7305b31b85deb223a4c9b36f872..bc4dcaef8ec8e837337babe47a7635e5534d43bd 100644 (file)
--- a/common.c
+++ b/common.c
@@ -2,9 +2,6 @@
  * Generally useful stuff.
  */
 
-#include <gsl/gsl_vector.h>
-#include <gsl/gsl_blas.h>
-
 #include "common.h"
 
 double magnD(const double pq[D3]) {
@@ -45,3 +42,6 @@ void xprod(double r[D3], const double a[D3], const double b[D3]) {
   r[1]= a[2]*b[0] - a[0]*b[2];
   r[2]= a[0]*b[1] - a[1]*b[0];
 }
+
+void diee(const char *what) { perror(what); exit(16); }
+void flushoutput(void) { if (fflush(stdout)||ferror(stdout)) diee("stdout"); }