Skip to content

Commit 6239443

Browse files
Fix warning message and return type of getting object ids from long to int
1 parent 14c70f3 commit 6239443

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Lusas_Adapter/CRUD/Read/Results/BarResults.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ private IEnumerable<IResult> ExtractBarStress(List<int> ids, List<int> loadcaseI
215215
d_LusasData.flushScriptedResults();
216216
}
217217

218-
BH.Engine.Base.Compute.RecordWarning("Please note only axial strains will be returned when pulling BarStress results.");
218+
BH.Engine.Base.Compute.RecordWarning("Please note only axial stress will be returned when pulling BarStress results.");
219219

220220
return barStresses;
221221
}

Lusas_Adapter/CRUD/Read/Results/ReadResults.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@ private List<int> GetAllIds(NodeResultRequest request)
108108

109109
/***************************************************/
110110

111-
private List<long> GetAllIds(BarResultRequest request)
111+
private List<int> GetAllIds(BarResultRequest request)
112112
{
113-
List<long> ids = new List<long>();
113+
List<int> ids = new List<int>();
114114
long maxIndex = d_LusasData.getLargestLineID();
115115

116116
for (int i = 1; i < maxIndex + 1; i++)
@@ -128,9 +128,9 @@ private List<long> GetAllIds(BarResultRequest request)
128128

129129
/***************************************************/
130130

131-
private List<long> GetAllIds(MeshResultRequest request)
131+
private List<int> GetAllIds(MeshResultRequest request)
132132
{
133-
List<long> ids = new List<long>();
133+
List<int> ids = new List<int>();
134134
long maxIndex = d_LusasData.getLargestSurfaceID();
135135

136136
for (int i = 1; i < maxIndex + 1; i++)

0 commit comments

Comments
 (0)