Skip to content

Conversation

vickysharma0812
Copy link
Member

@vickysharma0812 vickysharma0812 commented Jan 29, 2024

Updates in DynamicMesh_Class

  • This is WIP for DynamicMesh data structure in easifem
  • WO ElemDataList

Generated summary (powered by Graphite)

TL;DR

This pull request includes changes to the CMakeLists.txt and ElemData_Class.F90 files in the AbstractMesh module. New files were added to the target sources in CMakeLists.txt, and modifications were made to the ElemData_Class.F90 file. The changes involve defining a class called ElemData_Class with variables and subroutines, including one that displays information about the object. The code also includes subroutines and modules for managing node data in a binary tree, importing and exporting data from HDF5 files, and reading scalar and vector values from HDF5 files.

What changed

  • Changes were made to the CMakeLists.txt file in the DynamicMesh submodule, including modifications to the target_sources function to include additional source files for the project. Some source files were commented out and are no longer included.
  • A new file called "DynamicMesh_Class@ConstructorMethods.F90" has been added to the "src/submodules/DynamicMesh/src" directory. The file is part of the EASIFEM library and is licensed under the GNU General Public License.
  • The code adds a new element to a data structure called elementDataList and a new node to a binary tree called nodeDataBinaryTree. It then updates the ID of the binary tree and the total number of nodes in the main object.
  • The code reallocates memory, assigns values to variables in an object, creates an array of node data objects, and distinguishes between boundary and internal nodes.
  • The code includes statements for deallocating memory, setting IDs, and calculating the size of a binary tree. It also includes commented out code for checking path existence and reading data from it.
  • The code performs operations on an object, assigns values to its properties based on conditions, checks if certain variables are greater than zero, performs additional operations accordingly, deallocates certain variables if they are allocated, and includes a debug statement.
  • The code reads data from an HDF5 file using different functions for scalar, vector, and matrix data. The data is assigned to variables and memory is allocated for an array under certain conditions.
  • The code checks a condition and performs different actions based on the result. If the condition is true, it sets a variable and allocates memory for an array. If the condition is false, it calculates the maximum and minimum values of an array, reallocates memory for another array, assigns values to certain elements, counts non-zero elements, and allocates memory for another array.
  • The code checks if a path exists in an HDF5 file and raises an error if it doesn't. If the path does exist, it reads the data and assigns it to variables. It also reallocates memory for a specific variable.
  • The code sets internal nptrs and identifies boundary nodes. It checks conditions and reads a scalar value from a specified field.
  • The code includes two subroutines that read scalar values and integer vectors from a HDF5 file. The subroutines check if the specified path exists and then read the values accordingly.

Why make this change

  • The changes to the CMakeLists.txt file were made to include additional source files in the build and ensure that the project is properly compiled and linked.
  • The changes to the ElemData_Class.F90 file were made to define a class and its subroutines for managing element data in the AbstractMesh module.
  • The changes related to managing node data in a binary tree were made to improve the organization and efficiency of the code.
  • The changes related to importing and exporting data from HDF5 files were made to enhance the functionality of the program and allow for seamless integration with HDF5 data.
  • The changes related to reading scalar and vector values from HDF5 files were made to improve the accuracy and reliability of data retrieval from HDF5 files.

- This is WIP for DynamicMesh data structure in easifem
- WO ElemDataList
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

1 participant