Checkig Iput data of crack calculator was changed
This commit is contained in:
@@ -60,14 +60,16 @@ namespace StructureHelperLogics.NdmCalculations.Analyses.ByForces
|
||||
private void MultiThreadProc(IEnumerable<IPoint2D> points)
|
||||
{
|
||||
Task<IPoint2D>[] tasks = new Task<IPoint2D>[points.Count()];
|
||||
for (int i = 0; i < points.Count(); i++)
|
||||
int pointCount = points.Count();
|
||||
List<IPoint2D> PointList = points.ToList();
|
||||
for (int i = 0; i < pointCount; i++)
|
||||
{
|
||||
var point = points.ToList()[i];
|
||||
var point = PointList[i];
|
||||
tasks[i] = new Task<IPoint2D>(() => FindResultPoint(point));
|
||||
tasks[i].Start();
|
||||
}
|
||||
Task.WaitAll(tasks);
|
||||
for (int j = 0; j < points.Count(); j++)
|
||||
for (int j = 0; j < pointCount; j++)
|
||||
{
|
||||
var taskResult = tasks[j].Result;
|
||||
resultList.Add(taskResult);
|
||||
|
||||
@@ -50,7 +50,7 @@ namespace StructureHelperLogics.NdmCalculations.Analyses.ByForces
|
||||
Point2D minPoint = new(), maxPoint = new();
|
||||
foreach (var item in ndmCollection)
|
||||
{
|
||||
var strain = stressLogic.GetTotalStrain(strainMatrix, item);
|
||||
var strain = stressLogic.GetSectionStrain(strainMatrix, item);
|
||||
if (strain < minStrain)
|
||||
{
|
||||
minStrain = strain;
|
||||
|
||||
Reference in New Issue
Block a user