Commit 44c6a457 authored by Егор Сальков's avatar Егор Сальков
Browse files

Upload New File

parent 87d6a286
No related merge requests found
Pipeline #1371 canceled with stages
Showing with 37 additions and 0 deletions
+37 -0
Aneumesh.cpp 0 → 100644
#include "AneuMeshLoader.h"
void AneoMeshLoader::LoadMesh(const std::string& str)
{
ifstream file(str);
if (!file.is_open())
{
throw exc();
}
uint16_t k, r;
file >> k;
file >> r;
Node nbuf;
for (int i = 0; i < k; i++)
{
file >> nbuf;
add_node(nbuf);
}
Finite_element fbuf;
file >> k; //!!! Лучне использовать >>
file >> r; //!!! Лучне использовать >>
for (int i = 0; i < k; i++)
{
file >> fbuf;
add_Finite_Element(fbuf);
}
file >> k; //!!! Лучне использовать >>
file >> r; //!!! Лучне использовать >>
Boundary_Finite_element bbuf;
for (int i = 0; i < k; i++)
{
file >> bbuf;
add_BFE(bbuf);
}
file.close();
}
\ No newline at end of file
Supports Markdown
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