Изменение индексов граничных условий

Оптимизация кода
This commit is contained in:
2025-05-15 23:26:58 +03:00
parent 5d555820cc
commit 3ed8093481
6 changed files with 14 additions and 57 deletions

View File

@@ -1,9 +1,11 @@
#ifndef MIMAPR_MESH_H
#define MIMAPR_MESH_H
#include <vector>
#include "Object.hpp"
#include "Node.hpp"
#include <vector>
#include <iostream>
#include <fstream>
class Mesh{
std::vector<std::vector<Node*>> mesh;

View File

@@ -1,6 +1,8 @@
#ifndef MIMAPR_NODE_H
#define MIMAPR_NODE_H
#define T_START 0.
#include <cmath>
class Node{
@@ -14,7 +16,7 @@ class Node{
Node* above;
Node* bellow;
public:
Node(double _x = 0., double _y = 0., int _type = 0., double _t = 0.): x(_x), y(_y), t(_t), left(nullptr), right(nullptr), above(nullptr), bellow(nullptr), btype(_type) {}
Node(double _x = 0., double _y = 0., int _type = 0., double _t = T_START): x(_x), y(_y), t(_t), left(nullptr), right(nullptr), above(nullptr), bellow(nullptr), btype(_type) {}
double T() const;
double X() const;