Commit a46eeb00 authored by DIAZ Jerome's avatar DIAZ Jerome Committed by GILLES Sebastien

#1292 Getting rid of static_cast to integers which were required by the...

#1292 Getting rid of static_cast to integers which were required by the previous library for linear algebra.
parent 54eefca3
......@@ -1141,9 +1141,6 @@
BE8C37051DB50FB500919468 /* TransientSource.hxx in Headers */ = {isa = PBXBuildFile; fileRef = BE8C367F1DB50FB500919468 /* TransientSource.hxx */; };
BE8C37181DB50FB500919468 /* AnalyticalPrestress.hpp in Headers */ = {isa = PBXBuildFile; fileRef = BE8C36991DB50FB500919468 /* AnalyticalPrestress.hpp */; };
BE8C37191DB50FB500919468 /* AnalyticalPrestress.hxx in Headers */ = {isa = PBXBuildFile; fileRef = BE8C369A1DB50FB500919468 /* AnalyticalPrestress.hxx */; };
BE8C371B1DB50FB500919468 /* InputAnalyticalPrestress.hpp in Headers */ = {isa = PBXBuildFile; fileRef = BE8C369C1DB50FB500919468 /* InputAnalyticalPrestress.hpp */; };
BE8C371C1DB50FB500919468 /* InputAnalyticalPrestress.hxx in Headers */ = {isa = PBXBuildFile; fileRef = BE8C369D1DB50FB500919468 /* InputAnalyticalPrestress.hxx */; };
BE8C371D1DB50FB500919468 /* InputNone.hpp in Headers */ = {isa = PBXBuildFile; fileRef = BE8C369E1DB50FB500919468 /* InputNone.hpp */; };
BE8C371E1DB50FB500919468 /* None.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BE8C369F1DB50FB500919468 /* None.cpp */; };
BE8C371F1DB50FB500919468 /* None.hpp in Headers */ = {isa = PBXBuildFile; fileRef = BE8C36A01DB50FB500919468 /* None.hpp */; };
BE8C37201DB50FB500919468 /* Hyperelasticity.hpp in Headers */ = {isa = PBXBuildFile; fileRef = BE8C36A21DB50FB500919468 /* Hyperelasticity.hpp */; };
......@@ -4037,9 +4034,6 @@
BE8C36871DB50FB500919468 /* FollowingPressure.hxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = FollowingPressure.hxx; sourceTree = "<group>"; };
BE8C36991DB50FB500919468 /* AnalyticalPrestress.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = AnalyticalPrestress.hpp; sourceTree = "<group>"; };
BE8C369A1DB50FB500919468 /* AnalyticalPrestress.hxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = AnalyticalPrestress.hxx; sourceTree = "<group>"; };
BE8C369C1DB50FB500919468 /* InputAnalyticalPrestress.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = InputAnalyticalPrestress.hpp; sourceTree = "<group>"; };
BE8C369D1DB50FB500919468 /* InputAnalyticalPrestress.hxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = InputAnalyticalPrestress.hxx; sourceTree = "<group>"; };
BE8C369E1DB50FB500919468 /* InputNone.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = InputNone.hpp; sourceTree = "<group>"; };
BE8C369F1DB50FB500919468 /* None.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = None.cpp; sourceTree = "<group>"; };
BE8C36A01DB50FB500919468 /* None.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = None.hpp; sourceTree = "<group>"; };
BE8C36A21DB50FB500919468 /* Hyperelasticity.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = Hyperelasticity.hpp; sourceTree = "<group>"; };
......@@ -8660,9 +8654,6 @@
children = (
BE8C36991DB50FB500919468 /* AnalyticalPrestress.hpp */,
BE8C369A1DB50FB500919468 /* AnalyticalPrestress.hxx */,
BE8C369C1DB50FB500919468 /* InputAnalyticalPrestress.hpp */,
BE8C369D1DB50FB500919468 /* InputAnalyticalPrestress.hxx */,
BE8C369E1DB50FB500919468 /* InputNone.hpp */,
BE3444F02375A57000639772 /* Microsphere.hpp */,
BE3444F12375A57000639772 /* Microsphere.hxx */,
BE8C369F1DB50FB500919468 /* None.cpp */,
......@@ -10850,7 +10841,6 @@
BE7D64EE235906FB00A59EE3 /* Bidomain.hxx in Headers */,
BE8C37041DB50FB500919468 /* TransientSource.hpp in Headers */,
BE8C36F51DB50FB500919468 /* Mass.hpp in Headers */,
BE8C371B1DB50FB500919468 /* InputAnalyticalPrestress.hpp in Headers */,
BE3444F72375A5D500639772 /* Microsphere.hpp in Headers */,
BE7D64C7235906CA00A59EE3 /* UpdateFiberDeformation.hxx in Headers */,
BE7C94771F604ED7003D2C52 /* MitchellSchaeffer.hxx in Headers */,
......@@ -10858,7 +10848,6 @@
BE7C94731F604ED7003D2C52 /* FitzHughNagumo.hpp in Headers */,
BE7D64AE235906AE00A59EE3 /* NonlinearMembrane.hpp in Headers */,
BE8C37351DB50FB500919468 /* Helper.hxx in Headers */,
BE8C371D1DB50FB500919468 /* InputNone.hpp in Headers */,
BE7D65032359070000A59EE3 /* Bidomain.hpp in Headers */,
BE7C94741F604ED7003D2C52 /* FitzHughNagumo.hxx in Headers */,
BE7D64F0235906FB00A59EE3 /* GradPhiGradPhi.hxx in Headers */,
......@@ -10867,7 +10856,6 @@
BE7D64B3235906AE00A59EE3 /* SecondPiolaKirchhoffStressTensor.hxx in Headers */,
BE7D64F5235906FB00A59EE3 /* SurfacicBidomain.hpp in Headers */,
BE494103224250E800157863 /* FiberDensityJ1J4J6.hxx in Headers */,
BE8C371C1DB50FB500919468 /* InputAnalyticalPrestress.hxx in Headers */,
BE7D65092359070000A59EE3 /* ScalarDivVectorial.hxx in Headers */,
BE494102224250E800157863 /* FiberDensityJ1J4J6.hpp in Headers */,
BE7D64F7235906FB00A59EE3 /* VariableMass.hpp in Headers */,
......@@ -77,7 +77,7 @@ namespace MoReFEM
{
for (unsigned int shape_fct_index = 0u; shape_fct_index < Nshape_function; ++shape_fct_index)
{
jacobian(component, static_cast<int>(shape_fct_index)) +=
jacobian(component, shape_fct_index) +=
coords_in_geom_elt[component] * first_derivate_shape_function[shape_fct_index];
}
}
......
......@@ -114,7 +114,7 @@ namespace MoReFEM
assert(node_test_index + component * Nnode_for_test_unknown < former_local_velocity.size());
modified_velocity_at_quad_pt +=
former_local_velocity[node_test_index + component * Nnode_for_test_unknown]
* phi_test(static_cast<int>(node_test_index));
* phi_test(node_test_index);
}
for (auto m = 0ul; m < Nnode_for_test_unknown; ++m)
......@@ -124,7 +124,7 @@ namespace MoReFEM
matrix_result(m, n) +=
factor
* modified_velocity_at_quad_pt
* grad_phi_test(m, static_cast<int>(component))
* grad_phi_test(m, component)
* phi(n) ;
}
}
......@@ -144,7 +144,7 @@ namespace MoReFEM
for (auto node_index = 0ul; node_index < Nnode_for_test_unknown; ++node_index)
div_modified_velocity_at_quad_pt +=
former_local_velocity[node_index + component * Nnode_for_test_unknown]
* grad_phi_test(static_cast<int>(node_index), static_cast<int>(component));
* grad_phi_test(node_index, component);
}
for (auto m = 0ul; m < Nnode_for_test_unknown; ++m)
......
......@@ -277,7 +277,7 @@ namespace MoReFEM
for(unsigned int component = 0u; component < Ncomponent; ++component)
{
dphi(node_position_in_matrix, static_cast<int>(component))
dphi(node_position_in_matrix, component)
= basic_ref_felt.FirstDerivateShapeFunction(local_node_index, component, quadrature_point);
}
}
......
......@@ -99,7 +99,7 @@ namespace MoReFEM
const auto& current_point = *current_point_ptr;
for(unsigned int icoor = 0; icoor < Ncomponent; ++icoor)
point_(static_cast<int>(i), static_cast<int>(icoor)) = current_point[icoor];
point_(i, icoor) = current_point[icoor];
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment