diff --git a/apps/cpu/TPMSRow/TPMSRow.cpp b/apps/cpu/TPMSRow/TPMSRow.cpp index 5c8cde27ab06769f939145f496d49c68b50f48a2..dad09b05446befaf507d3789e8dbdd058b26b0bf 100644 --- a/apps/cpu/TPMSRow/TPMSRow.cpp +++ b/apps/cpu/TPMSRow/TPMSRow.cpp @@ -456,11 +456,11 @@ void run(string configname) SPtr<GbPoint3D> pointOne(new GbPoint3D(-0.00494999997317791,0.008, 0.0099)); SPtr<GbPoint3D> pointTwo(new GbPoint3D(0.14994999766349792, 0.008, 0.0099)); - SPtr<GbLine3D> line(new GbLine3D(pointOne,pointTwo)); + SPtr<GbLine3D> line(new GbLine3D(pointOne.get(),pointTwo.get())); if (myid == 0) GbSystem3D::writeGeoObject(line.get(), pathname + "/geo/line", WbWriterVtkXmlBinary::getInstance()); SPtr<UbScheduler> linSch(new UbScheduler(outTime/20,outTime/2/*,beginTime,endTime*/)); - SPtr<SimulationObserver> lp(new LineTimeSeriesSimulationObserver(grid, linSch, pathname, WbWriterVtkXmlBinary::getInstance(), line,refineLevel, comm)); + SPtr<SimulationObserver> lp(new LineTimeSeriesSimulationObserver(grid, linSch, pathname, line,refineLevel, comm)); SPtr<UbScheduler> visSch(new UbScheduler(outTime/*,beginTime,endTime*/)); SPtr<SimulationObserver> pp(new WriteMacroscopicQuantitiesSimulationObserver(grid, visSch, pathname, WbWriterVtkXmlBinary::getInstance(), conv, comm));