Skip to content

Instantly share code, notes, and snippets.

View crystalfp's full-sized avatar

Mario Valle crystalfp

View GitHub Profile
@crystalfp
crystalfp / standardize.c
Created May 17, 2024 08:28
Example spg_standardize_cell
#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) {
@crystalfp
crystalfp / CMakeLists.txt
Created June 6, 2024 07:58
Material for issue 494
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)