Changeset 1205 for XIOS/dev/branch_yushan_merged/extern/remap/src/polyg.cpp
- Timestamp:
- 07/10/17 18:17:04 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_yushan_merged/extern/remap/src/polyg.cpp
r1176 r1205 3 3 #include <cassert> 4 4 #include <iostream> 5 #include <stdio.h>6 5 #include "elt.hpp" 7 6 #include "errhandle.hpp" … … 175 174 t[2] = x[ii]; 176 175 double sc=scalarprod(crossprod(t[1] - t[0], t[2] - t[0]), t[0]) ; 177 //assert(sc >= -1e-10); // Error: tri a l'env (wrong orientation) 178 if(sc < -1e-10) 179 { 180 printf("N=%d, sc = %f, t[0]=(%f,%f,%f), t[1]=(%f,%f,%f), t[2]=(%f,%f,%f)\n", N, sc, 181 t[0].x, t[0].y, t[0].z, 182 t[1].x, t[1].y, t[1].z, 183 t[2].x, t[2].y, t[2].z); 184 assert(sc >= -1e-10); 185 } 176 assert(sc >= -1e-10); // Error: tri a l'env (wrong orientation) 186 177 double area_gc = triarea(t[0], t[1], t[2]); 187 178 double area_sc_gc_moon = 0;
Note: See TracChangeset
for help on using the changeset viewer.