~ubuntu-branches/ubuntu/trusty/nwchem/trusty-proposed

« back to all changes in this revision

Viewing changes to src/tools/ga-5-1/global/X/xregion_dialog.c

  • Committer: Package Import Robot
  • Author(s): Michael Banck, Daniel Leidert, Andreas Tille, Michael Banck
  • Date: 2013-07-04 12:14:55 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20130704121455-5tvsx2qabor3nrui
Tags: 6.3-1
* New upstream release.
* Fixes anisotropic properties (Closes: #696361).
* New features include:
  + Multi-reference coupled cluster (MRCC) approaches
  + Hybrid DFT calculations with short-range HF 
  + New density-functionals including Minnesota (M08, M11) and HSE hybrid
    functionals
  + X-ray absorption spectroscopy (XAS) with TDDFT
  + Analytical gradients for the COSMO solvation model
  + Transition densities from TDDFT 
  + DFT+U and Electron-Transfer (ET) methods for plane wave calculations
  + Exploitation of space group symmetry in plane wave geometry optimizations
  + Local density of states (LDOS) collective variable added to Metadynamics
  + Various new XC functionals added for plane wave calculations, including
    hybrid and range-corrected ones
  + Electric field gradients with relativistic corrections 
  + Nudged Elastic Band optimization method
  + Updated basis sets and ECPs 

[ Daniel Leidert ]
* debian/watch: Fixed.

[ Andreas Tille ]
* debian/upstream: References

[ Michael Banck ]
* debian/upstream (Name): New field.
* debian/patches/02_makefile_flags.patch: Refreshed.
* debian/patches/06_statfs_kfreebsd.patch: Likewise.
* debian/patches/07_ga_target_force_linux.patch: Likewise.
* debian/patches/05_avoid_inline_assembler.patch: Removed, no longer needed.
* debian/patches/09_backported_6.1.1_fixes.patch: Likewise.
* debian/control (Build-Depends): Added gfortran-4.7 and gcc-4.7.
* debian/patches/10_force_gcc-4.7.patch: New patch, explicitly sets
  gfortran-4.7 and gcc-4.7, fixes test suite hang with gcc-4.8 (Closes:
  #701328, #713262).
* debian/testsuite: Added tests for COSMO analytical gradients and MRCC.
* debian/rules (MRCC_METHODS): New variable, required to enable MRCC methods.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#if HAVE_CONFIG_H
2
 
#   include "config.h"
3
 
#endif
4
 
 
5
 
/* This module contains functions for creating and destroying a simple
6
 
   dialog box.  
7
 
*/
8
 
 
9
 
#include "xregion.h"
10
 
 
11
 
void dialog_box(char *dlg_str)
12
 
{
13
 
  Display *disp;
14
 
 
15
 
  disp = XtDisplay(overview_shell);
16
 
 
17
 
  /* Create top level shell widget */
18
 
  dlg_top = XtVaAppCreateShell("xregion","XRegion",
19
 
                     applicationShellWidgetClass,disp,
20
 
                     NULL);
21
 
 
22
 
  /* Create form widget to hold everything else */
23
 
 
24
 
  dlg_form = XtVaCreateManagedWidget("dialogform", formWidgetClass,
25
 
                                     dlg_top,
26
 
                                     XtNbackground, DEFAULT_BG,
27
 
                                     XtNforeground, DEFAULT_FG,
28
 
                                     NULL);
29
 
 
30
 
  dlg_label = XtVaCreateManagedWidget("dialoglabel", labelWidgetClass,
31
 
                                     dlg_form,
32
 
                                     XtNbackground, DEFAULT_BG,
33
 
                                     XtNforeground, DEFAULT_FG,
34
 
                                     XtNlabel, dlg_str,
35
 
                                     XtNvertDistance, 5,
36
 
                                     XtNhorizDistance, 5,
37
 
                                     XtNborderWidth, 0,
38
 
                                     NULL);
39
 
 
40
 
  dlg_btn = XtVaCreateManagedWidget("dialogbutton", commandWidgetClass,
41
 
                                     dlg_form,
42
 
                                     XtNbackground, DEFAULT_BG,
43
 
                                     XtNforeground, DEFAULT_FG,
44
 
                                     XtNlabel, "Dismiss",
45
 
                                     XtNfromVert, dlg_label,
46
 
                                     XtNvertDistance, 5,
47
 
                                     XtNhorizDistance, 30,
48
 
                                     NULL);
49
 
  XtAddCallback(dlg_btn, XtNcallback, dismiss_dialog, NULL);
50
 
 
51
 
  XtRealizeWidget(dlg_top);
52
 
}
53
 
 
54
 
/* JJU: void dismiss_dialog(Widget w, caddr_t data, XEvent *event) */
55
 
void dismiss_dialog(Widget w, XtPointer data, XtPointer event)
56
 
{
57
 
  /* remove dialog box */
58
 
  XtDestroyWidget(dlg_btn);
59
 
  XtDestroyWidget(dlg_label);
60
 
  XtDestroyWidget(dlg_form);
61
 
  XtDestroyWidget(dlg_top);
62
 
}
63