# Infinite loop when importing INP file

**URL:** <https://prepomax.discourse.group/t/infinite-loop-when-importing-inp-file/1764>\
**Category:** Bug Reports\
**Created:** [May 25, 2024, 6:24pm UTC](https://prepomax.discourse.group/t/infinite-loop-when-importing-inp-file/1764 "2024-05-25T18:24:56Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![yvan](https://avatars.discourse-cdn.com/v4/letter/y/3ab097/32.png) [@yvan](https://prepomax.discourse.group/u/yvan)\
**Post date:** [May 25, 2024, 6:24pm UTC](https://prepomax.discourse.group/t/infinite-loop-when-importing-inp-file/1764/1 "2024-05-25T18:24:56Z")

</div>

Hello  
I have an Infinite loop when importing this INP file (with version 2.0.0).  
But I can’t attach file…

---

<div class="post-metadata">

**Author:** ![FEAnalyst](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/feanalyst/32/688_2.png) [@FEAnalyst](https://prepomax.discourse.group/u/FEAnalyst)\
**Post date:** [May 25, 2024, 6:40pm UTC](https://prepomax.discourse.group/t/infinite-loop-when-importing-inp-file/1764/2 "2024-05-25T18:40:26Z")

</div>

What is the size of the file ? Does it contain only mesh or also analysis features ?

---

<div class="post-metadata">

**Author:** ![yvan](https://avatars.discourse-cdn.com/v4/letter/y/3ab097/32.png) [@yvan](https://prepomax.discourse.group/u/yvan)\
**Post date:** [May 25, 2024, 7:34pm UTC](https://prepomax.discourse.group/t/infinite-loop-when-importing-inp-file/1764/3 "2024-05-25T19:34:42Z")

</div>

Here is a GoogleDrive link for the file : [https://drive.google.com/file/d/1gr2kYPcOLnPWmFKXbfHkgS8NPvmwGfkx/view?usp=drive\_link](https://drive.google.com/file/d/1gr2kYPcOLnPWmFKXbfHkgS8NPvmwGfkx/view?usp=drive_link)  
It only contains mesh data.

---

<div class="post-metadata">

**Author:** ![FEAnalyst](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/feanalyst/32/688_2.png) [@FEAnalyst](https://prepomax.discourse.group/u/FEAnalyst)\
**Post date:** [May 25, 2024, 8:07pm UTC](https://prepomax.discourse.group/t/infinite-loop-when-importing-inp-file/1764/4 "2024-05-25T20:07:00Z")

</div>

You have to set access to “Anyone with the link” before copying the link and pasting it here.

---

<div class="post-metadata">

**Author:** ![yvan](https://avatars.discourse-cdn.com/v4/letter/y/3ab097/32.png) [@yvan](https://prepomax.discourse.group/u/yvan)\
**Post date:** [May 25, 2024, 8:33pm UTC](https://prepomax.discourse.group/t/infinite-loop-when-importing-inp-file/1764/5 "2024-05-25T20:33:52Z")

</div>

OK sorry  
That should be Ok now

---

<div class="post-metadata">

**Author:** ![FEAnalyst](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/feanalyst/32/688_2.png) [@FEAnalyst](https://prepomax.discourse.group/u/FEAnalyst)\
**Post date:** [May 25, 2024, 9:38pm UTC](https://prepomax.discourse.group/t/infinite-loop-when-importing-inp-file/1764/6 "2024-05-25T21:38:03Z")

</div>

Yeah, it just keeps loading without success. The mesh is large (around 600 000 nodes and 265 000 elements) but I can load it using other software including FreeCAD.

---

<div class="post-metadata">

**Author:** ![Matej](https://avatars.discourse-cdn.com/v4/letter/m/a698b9/32.png) [@Matej](https://prepomax.discourse.group/u/Matej)\
**Post date:** [May 27, 2024, 9:01am UTC](https://prepomax.discourse.group/t/infinite-loop-when-importing-inp-file/1764/7 "2024-05-27T09:01:03Z")

</div>

I can confirm this problem: your mesh is not merged. Somehow, you managed to create a mesh of unconnected elements. During import, PrePoMax searches for connected elements to create parts out of them. A part of PrePoMax is a group of connected elements. But there is a limit of the maximum number of parts in the model, which equals 9999. In your case, there are about 240,000 such parts, so it fails to read them.

I added a limit now so that PrePoMax reads the parts up to the part ID of 9900, and then it stops. This will prevent PrePoMax from looping but it will not solve your problem.

The problem is int the wedge elements, which use coincident but unmerged nodes.

 ![image](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/5/5f021634b0a8485785a1383dc35ec0e238705e38.png)

---

<div class="post-metadata">

**Author:** ![Matej](https://avatars.discourse-cdn.com/v4/letter/m/a698b9/32.png) [@Matej](https://prepomax.discourse.group/u/Matej)\
**Post date:** [January 22, 2025, 9:21am UTC](https://prepomax.discourse.group/t/infinite-loop-when-importing-inp-file/1764/8 "2025-01-22T09:21:11Z")

</div>

I am changing this topic to closed.

---

<div class="post-metadata">

**Author:** ![Matej](https://avatars.discourse-cdn.com/v4/letter/m/a698b9/32.png) [@Matej](https://prepomax.discourse.group/u/Matej)\
**Post date:** [January 22, 2025, 9:21am UTC](https://prepomax.discourse.group/t/infinite-loop-when-importing-inp-file/1764/9 "2025-01-22T09:21:13Z")

</div>


