From 96144ed3a16fdd782dd7274dc0fbeaf616442eab Mon Sep 17 00:00:00 2001 From: Sebastian Held Date: Wed, 2 Jun 2010 08:57:45 +0200 Subject: [PATCH] bugfix: snapping of current probes (sorry...) --- FDTD/processcurrent.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FDTD/processcurrent.cpp b/FDTD/processcurrent.cpp index 3ed12b1..dfa9e9d 100644 --- a/FDTD/processcurrent.cpp +++ b/FDTD/processcurrent.cpp @@ -29,9 +29,9 @@ ProcessCurrent::~ProcessCurrent() void ProcessCurrent::DefineStartStopCoord(double* dstart, double* dstop) { - if (Op->SnapToMesh(dstart,start)==false) + if (Op->SnapToMesh(dstart,start,true,m_start_inside)==false) cerr << "ProcessCurrent::DefineStartStopCoord: Warning: Snapped line outside field domain!!" << endl; - if (Op->SnapToMesh(dstop,stop)==false) + if (Op->SnapToMesh(dstop,stop,true,m_stop_inside)==false) cerr << "ProcessCurrent::DefineStartStopCoord: Warning: Snapped line outside field domain!!" << endl; if (g_settings.showProbeDiscretization()) {