65extern const gchar *
dfi[2];
103 g_print (
"Reading coordinates [%s]: %s = %d\n", type, sinf,
val);
121 str = g_strdup_printf (
"Wrong file format: error at step %d !\n"
122 "Wrong file format: record <b>%s</b> on line <b>%d</b> is corrupted !",
127 str = g_strdup_printf (
"Wrong file format: error at step %d, atom %d !\n"
128 "Wrong file format: record <b>%s</b> on line <b>%d</b> is corrupted !",
129 stp, ato,
mot, line+1);
152 gchar **
dummy = NULL;
169 gchar * str = g_strdup_printf (
"Use dummy atom(s) for unknown %s species ?",
this_word);
174 str = g_strdup_printf (
"Using dummy atom(s) for unknown %s species",
this_word);
181 str = g_strdup_printf (
"No dummy atom(s) for unknown %s species",
this_word);
261 int fsize =
status.st_size;
271 gchar * coord_content = g_malloc0(fsize*
sizeof*coord_content);
272 fread (coord_content, fsize, 1,
coordf);
275 for (j=0; j<fsize; j++)
if (coord_content[j] ==
'\n') linecount ++;
279 for (j=0; j<fsize; j++)
281 if (coord_content[j] ==
'\n')
283 coord_content[j] =
'\0';
292 gchar * buf = g_malloc0(
LINE_SIZE*
sizeof*buf);
306 tail -> next = g_malloc0 (
sizeof*
tail -> next);
307 if (fti == 9 || fti == 10)
309 tail -> next -> prev = g_malloc0 (
sizeof*
tail -> next -> prev);
314 tail -> line = g_strdup_printf (
"%s", buf);
340 else if (fti > 6 && fti < 9)
344 else if (fti == 9 || fti == 10)
375 add_reader_info (
"Error trying to build crystal using the CIF file parameters !\n"
376 "This usually comes from: \n"
377 "\t - incorrect space group description\n"
378 "\t - incomplete space group description\n"
379 "\t - missing space group setting\n"
380 "\t - incorrect space group setting\n", 0);
386 "This usually comes from: \n"
387 "\t - incorrect space group description\n"
388 "\t - incomplete space group description\n"
389 "\t - missing space group setting\n"
390 "\t - incorrect space group setting\n", 1);
393 add_reader_info (
"\nAnother model will be built using included symmetry positions\n", 1);
440 gchar * str = g_strdup_printf (
"For species %s, radius is equal to 0.0 !",
active_chem ->
label[i]);
Binding to the Fortran90 subroutines.
double set_radius_(int *, int *)
double set_neutron_(int *)
gchar * substitute_string(gchar *init, gchar *o_motif, gchar *n_motif)
substitute all patterns in string
Callback declarations for main window.
Function declarations for the crystal builder.
integer(kind=c_int) function chemistry()
void label(cairo_t *cr, double val, int axe, int p, project *this_proj)
draw axis label
gchar ** duplicate_strings(int num, gchar **old_val)
copy a list of strings
gboolean cif_use_symmetry_positions
Global variable declarations Global convenience function declarations Global data structure defin...
element_data periodic_table_info[]
chemical_data * active_chem
char * coord_files_ext[NCFORMATS+1]
Variable declarations related to the OpenGL window Function declarations related to the OpenGL wind...
gboolean ask_yes_no(gchar *title, gchar *text, int type, GtkWidget *widg)
ask yes or no for something: prepare dialog
Messaging function declarations.
integer(kind=c_int) function lattice(totl, lid, vectors, vmod, angles, lat, cfrac, apbc)
Function declarations for reading atomes project file Function declarations for saving atomes proje...
void active_project_changed(int id)
change the active project
int open_coord_file(gchar *filename, int fti)
open atomic coordinates file
int open_trj_file(int linec)
open CPMD file
int build_crystal(gboolean visible, project *this_proj, gboolean to_wrap, gboolean show_clones, cell_info *cell, GtkWidget *widg)
build crystal
void reader_info(gchar *type, gchar *sinf, int val)
display reader information
int open_c3d_file(int linec)
open C3D file
void add_reader_info(gchar *info, int mid)
append information message to the reader information
chemical_data * alloc_chem_data(int spec)
allocate chemistry data
int open_hist_file(int linec)
open DL-POLY history file
void format_error(int stp, int ato, gchar *mot, int line)
Message to display an error message.
void allocatoms(project *this_proj)
allocate project data
int open_cif_file(int linec)
open CIF file
void check_for_species(double v, int ato)
Fill the species for each atom and the associated data.
int set_v_dummy(gchar *this_word)
check if dummy is used for unknown species, if not then ask what to do
int open_xyz_file(int linec)
open XYZ file
int open_vas_file(int linec)
open VASP file
int open_pdb_file(int linec)
open PDB file
atomic_object * cif_object