This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.20...3.29) | |
project(example_spglib LANGUAGES C) | |
set(CMAKE_C_STANDARD 11) | |
set(CMAKE_C_STANDARD_REQUIRED ON) | |
set(CMAKE_C_EXTENSIONS OFF) | |
find_package(Spglib REQUIRED) | |
add_executable(example example.c) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include "spglib.h" | |
static void sub_spg_standardize_cell(double lattice[3][3], double position[][3], | |
int types[], int const num_atom, | |
double const symprec, | |
int const to_primitive, | |
int const no_idealize) { |