Dear all,
I have used Nmag for several months and had a lot of fun due to large possibilities Nmag provides. 
Now
 I am  trying to simulate rather big structure (700 nm per side). 
Unfortunately after populating BEM matrix was ended I got a Segmentation
 fault.
So I just considered rather simple geometry (cube) in order to reveal the reason of the problem.
I attached my .geo file to the letter.
Mesh was built in Netgen 4.9.13 with following settings: max mesh size = 0.42, mesh granularity = very fine.
As a result I obtained mesh which consisted of approximately 419e3 nodes, 2300e3 volume elements and 64e3 surface elements.
Then I tried to load this mesh to Nmag (please see script attached below). But I got Segmentation fault (please see log file).
This segfault error occurs regardless of  whether or not I use Hlib.
For the mesh consisting of 360e3 nodes Nmag works well. 
I run Nmag on Ubuntu virtual machine. 28 GB of RAM are allocated for it. 
So
 I think that it is enough memory even for such a large mesh. It is 
interesting that segfault error occurs after all matrices are built. 
I read that in early Nmag release (Release 0.1 beta (5834))  diagnostic debug code that caused segfault for
large meshes was disabled. 
May be I encountered problem which has the same origin. Or may be I just compiled Nmag incorrectly (please see bug-report.tgz). 
Did anyone encounter the same problem?
Thank you in advance.
Sincerely,
Ilya Dubitskiy,
PhD student,
Faculty of Physics
Saint-Petersburg State University
tel. 
+7(812)4284588
fax 
+7(812)4287200, 
+7(812)4284588Address: Petrodvorets, Ulyanovskaya str., 1,
Saint-Petersburg, Russia, 198504