Author Topic: Invalid number of atoms  (Read 121 times)

Japser

  • Newbie
  • *
  • Posts: 1
Invalid number of atoms
« on: July 23, 2018, 04:51:43 AM »
Hello,
I have a cfg file containing 1.3 billion atoms and I want to load it into Ovito. However, an error is given
Code: [Select]
CFG file parsing error. Invalid number of atoms (line 1): 1371935025
Is this a bug or such a large file is not supported by Ovito?

If I load an another cfg file containing 0.2 billion atoms, all things are fine.

I use Ovito 2.9.0 with GUI on windows 8. My computer has 512G RAM which seems enough to load large file.

Thanks for help

Alexander Stukowski

  • Administrator
  • Sr. Member
  • *****
  • Posts: 475
Re: Invalid number of atoms
« Reply #1 on: July 23, 2018, 02:41:41 PM »
Hi,

The CFG format reader and some others (e.g. LAMMPS dump) in Ovito still contain a plausibility check on the number of atoms that is currently hardcoded to 1.0 billion. Any number above that limit is considered invalid by the program. I apologize for the inconvenience that this causes now. The code for these file readers was written 10 years ago, when datasets with a billion particles were very uncommon and Ovito itself was limited to 2 billion particles.

I'll remove the plausibility checks from the source code, and the next development release of Ovito 3.0 should be able to open your CFG file.

-Alex