ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
Functions
cif_io.cpp File Reference
#include <iostream>
#include <fstream>
#include <cmath>
#include <algorithm>
#include "source_base/formatter.h"
#include "source_io/cif_io.h"
#include <regex>
#include <cassert>
#include "source_base/tool_quit.h"
#include "source_base/parallel_common.h"
Include dependency graph for cif_io.cpp:

Functions

double deg2rad (double deg)
 
double rad2deg (double rad)
 
void _build_chem_formula (const int natom, const std::string *atom_site_labels, std::string &sum, std::string &structural)
 
void vec_to_abc_angles (const double *vec, double *abc_angles)
 
void abc_angles_to_vec (const double *abc_angles, double *vec)
 
double vec_to_volume (const double *vec)
 
double abc_angles_to_volume (const double *abc_angles)
 
std::vector< std::string > _split_outside_enclose (const std::string &in, const std::string &delim, const std::vector< std::string > &enclose)
 
std::vector< std::string > _split_loop_block (const std::string &block)
 
std::map< std::string, std::vector< std::string > > _build_table (const std::vector< std::string > &keys, const std::vector< std::string > &values)
 
std::map< std::string, std::vector< std::string > > _build_block_data (const std::vector< std::string > &block)
 
void bcast_cifmap (std::map< std::string, std::vector< std::string > > &map, const int rank=0)
 

Function Documentation

◆ _build_block_data()

std::map< std::string, std::vector< std::string > > _build_block_data ( const std::vector< std::string > &  block)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ _build_chem_formula()

void _build_chem_formula ( const int  natom,
const std::string *  atom_site_labels,
std::string &  sum,
std::string &  structural 
)
Here is the caller graph for this function:

◆ _build_table()

std::map< std::string, std::vector< std::string > > _build_table ( const std::vector< std::string > &  keys,
const std::vector< std::string > &  values 
)
Here is the caller graph for this function:

◆ _split_loop_block()

std::vector< std::string > _split_loop_block ( const std::string &  block)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ _split_outside_enclose()

std::vector< std::string > _split_outside_enclose ( const std::string &  in,
const std::string &  delim,
const std::vector< std::string > &  enclose 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ abc_angles_to_vec()

void abc_angles_to_vec ( const double *  abc_angles,
double *  vec 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ abc_angles_to_volume()

double abc_angles_to_volume ( const double *  abc_angles)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ bcast_cifmap()

void bcast_cifmap ( std::map< std::string, std::vector< std::string > > &  map,
const int  rank = 0 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ deg2rad()

double deg2rad ( double  deg)
Here is the caller graph for this function:

◆ rad2deg()

double rad2deg ( double  rad)
Here is the caller graph for this function:

◆ vec_to_abc_angles()

void vec_to_abc_angles ( const double *  vec,
double *  abc_angles 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ vec_to_volume()

double vec_to_volume ( const double *  vec)
Here is the caller graph for this function: