Skip to content

A c++ code to convert bestsqs.out from mcsqs (ATAT) to POSCAR for VASP.

Notifications You must be signed in to change notification settings

CatalysTim/sqs2poscar

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

sqs2poscar

A c++ code to convert bestsqs.out generated by mcsqs (ATAT) to POSCAR for VASP.

Compile: c++ ./sqs2poscar.cpp -o ./sqs2poscar

Usage: sqs2poscar bestsqs.out

Output file: bestsqs.out-POSCAR

Post-processing: change xxx in the second line of output POSCAR file to your lattice constant.

Note: bestsqs.out can be any file at present working directory.

Update

After the code was released, c++ compiler on Linux seems to have added some changes to the default libraries. If you find the following errors:

sqs2poscar.cpp:218: error: ‘exit’ was not declared in this scope
sqs2poscar.cpp:222: error: ‘strcat’ was not declared in this scope
sqs2poscar.cpp:225: error: ‘exit’ was not declared in this scope
sqs2poscar.cpp:251: error: ‘exit’ was not declared in this scope

you can solve these errors by adding these two lines into the head of the sqs2poscar.cpp file:

#include <cstring>
#include <stdlib.h>

About

A c++ code to convert bestsqs.out from mcsqs (ATAT) to POSCAR for VASP.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 100.0%