void FindBaseStreamLines() { async_base = new IniFillAsync(AsyncIniFill); res_list = new List <IAsyncResult>(); h = 0.05; for (double x = x_min + h; x < x_max; x += h) { x = Round(x, 4); StreamLinesBase.Add(new List <DataPoint>()); res_list.Add(async_base.BeginInvoke(StreamLinesBase[StreamLinesBase.Count - 1], x, null, null)); } StreamLinesBase.Add(new List <DataPoint>()); res_list.Add(async_base.BeginInvoke(StreamLinesBase[StreamLinesBase.Count - 1], w.a - 0.01, null, null)); for (double x = x_min + h + w.R; x < x_max + w.R; x += h) { x = Round(x, 4); StreamLinesBase.Add(new List <DataPoint>()); res_list.Add(async_base.BeginInvoke(StreamLinesBase[StreamLinesBase.Count - 1], x, null, null)); } StreamLinesBase.Add(new List <DataPoint>()); res_list.Add(async_base.BeginInvoke(StreamLinesBase[StreamLinesBase.Count - 1], -w.a + w.R + 0.01, null, null)); while (!res_list.IsAllThreadsCompleted()) { } res_list = null; }
void FindAllStreamLines() { async_full = new FullBuildAsync(AsyncFullBuild); res_list = new List <IAsyncResult>(); for (double y = y_min + h; y <= y_max - h; y += h) { StreamLines.Add(new List <DataPoint>()); StreamLinesBase.Add(new List <DataPoint>()); res_list.Add(async_full.BeginInvoke(StreamLinesBase[StreamLinesBase.Count - 1], StreamLines[StreamLines.Count - 1], y, null, null)); } while (!res_list.IsAllThreadsCompleted()) { } res_list = null; }
void FindBaseStreamLines() { async_base = new IniFillAsync(AsyncIniFill); res_list = new List <IAsyncResult>(); if (w.f is Conformal_Maps.Diffusor) { y_min = -h; } for (double y = y_min + h; y <= y_max - h; y += h) { StreamLinesBase.Add(new List <DataPoint>()); res_list.Add(async_base.BeginInvoke(StreamLinesBase[StreamLinesBase.Count - 1], y, null, null)); } while (!res_list.IsAllThreadsCompleted()) { } res_list = null; }