79 return g_strdup_printf (
"%s",
cp2k_pot[i]);
97 for (i=0; i<
N_GTH; i++)
104 return g_strdup_printf (
"%s",
cp2k_gth[i]);
145 return g_strdup_printf (
"%s",
pot_keys[i]);
163 for (i=0; i<
N_GTH; i++)
170 return g_strdup_printf (
"%s",
gth_keys[i]);
203 for (i=0; i<
N_GTH; i++)
245 for (i=0; i<n_basis_pseudo; i++)
268 j = GPOINTER_TO_INT(data);
269 k = gtk_combo_box_get_active (box);
273 if (
tmp_cp2k -> spec_files[i][j] != NULL)
275 g_free (
tmp_cp2k -> spec_files[i][j]);
276 tmp_cp2k -> spec_files[i][j] = NULL;
293 int * sp_id = g_malloc0 (100*
sizeof*sp_id);
332 if (
tmp_cp2k -> spec_files[sp][obj] == NULL)
334 gtk_combo_box_set_active (GTK_COMBO_BOX(widg),
tmp_cp2k -> spec_data[sp][obj]);
Variable declarations for the MD input preparation assistants.
Callback declarations for main window.
integer(kind=c_int) function chemistry()
Variable declarations for the creation of the CP2K input file(s)
char * basis_keys[N_BASIS]
char * basis_elem[N_BASIS]
char * cp2k_basis[N_BASIS]
char * molopt_elem[N_MOLOPT]
char * cp2k_molopt[N_MOLOPT]
char * molopt_keys[N_MOLOPT]
gchar * get_nth_key(int sp, int id, int obj)
retrieve basis or pseudopotential key string for element from global list
gchar * get_nth_elem(int sp, int id, int obj)
retrieve basis or pseudopotential name string for element from global list
int cp2k_is_pseudo_in_database(int sp)
does this chemical species have pseudopotential(s) in store ?
GtkWidget * cp2k_spec_combo
int cp2k_is_basis_in_database(int sp)
does this chemical species have basis set(s) in store ?
GtkWidget * prepare_basis_combo(int sp, int obj)
prepare basis set / pseudopotential combo box
G_MODULE_EXPORT void changed_basis_pseudo_box(GtkComboBox *box, gpointer data)
change basis or pseudopotential
int prepare_cp2k_basis_pseudo_list(int sp, int *sp_id, int n_basis_pseudo, char *bp_elem[n_basis_pseudo])
find matching chemical element in basis / pseudo database
void label(cairo_t *cr, double val, int axe, int p, project *this_proj)
draw axis label
Global variable declarations Global convenience function declarations Global data structure defin...
GtkWidget * create_combo()
create a GtkCombox widget, note deprecated in GTK4
void widget_set_sensitive(GtkWidget *widg, gboolean sensitive)
Set sensitivity for a GtkWidget, ensuring it is a GtkWidget.
void combo_text_append(GtkWidget *combo, gchar *text)
append text in GtkComboBox widget
Variable declarations related to the OpenGL window Function declarations related to the OpenGL wind...
Function declarations for the creation of the OpenGL window.
gchar * exact_name(gchar *name)
short cut to print string without spaces
Messaging function declarations.
Function declarations for reading atomes project file Function declarations for saving atomes proje...