~ubuntu-branches/ubuntu/raring/gdis/raring-proposed

« back to all changes in this revision

Viewing changes to file_gms.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Leidert (dale)
  • Date: 2009-04-06 17:12:18 UTC
  • mfrom: (3.1.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090406171218-uizoe126jrq09ytt
Tags: 0.90-1
* New upstream release 0.90.
* Acknowledge NMU (closes: #492994). Thanks to Neil Williams.

* makefile.debian: Upstream doesn't provide a Makefile to edit - so created
  our own.
* debian/compat: Added and set to be 5.
* debian/control: Added Homepage, Vcs* and DM-Upload-Allowed fields.
  (Maintainer): Set to the debichem team with approval by Noèl.
  (Uploaders): Added myself.
  (Build-Depends): Increased debhelper version to 5. Removed glutg3-dev.
  Added dpatch.
  (Standards-Version): Bumped to 3.8.1.
  (Description): Removed homepage. Fixed a typo.
* debian/copyright: Updated, completed and adjusted.
* debian/dirs: Dropped useless file.
* debian/docs: Renamed to debian/gdis.docs.
* debian/menu: Renamed to debian/gdis.menu.
  (section): Fixed accordingly to policy.
* debian/gdis.1: Just some formatting changes.
* debian/gdis.desktop: Added file (with small fixes) provided by Phill Bull
  (LP: #111353).
* debian/gdis.install: Added.
* debian/rules: Cleaned. Installation is now done by dh_install. Make sure,
  the CVS directory is not copied. Added dh_desktop call.
* debian/source.lintian-overrides: makefile.debian is created for Debian but
  lives outside debian/.
* debian/watch: Added.
* debian/README.build: Dropped.
* debian/README.source: Added to be compliant to the policy v3.8.
* debian/patches/Debian_make.dpatch: Added.
  - gdis.h (ELEM_FILE): Moved fix for gdis.elemts path (#399132) to this
    patch.
* debian/patches/00list: Added.

Show diffs side-by-side

added added

removed removed

Lines of Context:
138
138
extern struct elem_pak elements[];
139
139
 
140
140
/* structures for gamess */
141
 
extern struct basis_pak basis_sets[];
 
141
struct basis_pak basis_sets[] = {
 
142
{"User Defined", GMS_USER, 0},
 
143
{"MNDO", GMS_MNDO, 0},
 
144
{"AM1", GMS_AM1, 0},
 
145
{"PM3", GMS_PM3, 0},
 
146
{"MINI", GMS_MINI, 0},
 
147
{"MIDI", GMS_MIDI, 0},
 
148
{"STO-2G", GMS_STO, 2},
 
149
{"STO-3G", GMS_STO, 3},
 
150
{"STO-4G", GMS_STO, 4},
 
151
{"STO-5G", GMS_STO, 5},
 
152
{"STO-6G", GMS_STO, 6},
 
153
{"3-21G", GMS_N21, 3},
 
154
{"6-21G", GMS_N21, 6},
 
155
{"4-31G", GMS_N31, 4},
 
156
{"5-31G", GMS_N31, 5},
 
157
{"6-31G", GMS_N31, 6},
 
158
{"6-311G", GMS_N311, 6},
 
159
{"DZV", GMS_DZV, 0},
 
160
{"DH", GMS_DH, 0},
 
161
{"TZV", GMS_TZV, 0},
 
162
{"MC", GMS_MC, 0},
 
163
{NULL, 0, 0}
 
164
};
 
165
 
 
166
/***********************************/
 
167
/* GAMESS structure initialization */
 
168
/***********************************/
 
169
void gamess_init(gpointer data)
 
170
{
 
171
struct gamess_pak *gamess = data;
 
172
 
 
173
gamess->units = GMS_ANGS;
 
174
gamess->exe_type = GMS_RUN;
 
175
gamess->run_type = GMS_ENERGY;
 
176
gamess->scf_type = GMS_RHF;
 
177
gamess->basis = GMS_MNDO;
 
178
gamess->dft = FALSE;
 
179
gamess->dft_functional = 0;
 
180
gamess->ngauss = 0;
 
181
gamess->opt_type = GMS_QA;
 
182
gamess->total_charge = 0;
 
183
gamess->multiplicity = 1;
 
184
gamess->time_limit = 600;
 
185
gamess->mwords = 1;
 
186
gamess->num_p = 0;
 
187
gamess->num_d = 0;
 
188
gamess->num_f = 0;
 
189
gamess->have_heavy_diffuse = FALSE;
 
190
gamess->have_hydrogen_diffuse = FALSE;
 
191
gamess->converged = FALSE;
 
192
gamess->wide_output = FALSE;
 
193
gamess->nstep = 20;
 
194
gamess->maxit = 30;
 
195
gamess->title = g_strdup("none");
 
196
gamess->temp_file = g_strdup("none");
 
197
gamess->out_file = g_strdup("none");
 
198
gamess->energy = gamess->max_grad = gamess->rms_grad = 0.0;
 
199
gamess->have_energy = gamess->have_max_grad = gamess->have_rms_grad = FALSE;
 
200
}
142
201
 
143
202
/****************/
144
203
/* file writing */
691
750
 
692
751
strcpy(model->filename, filename);
693
752
g_free(model->basename);
694
 
model->basename = strdup_basename(filename);
 
753
model->basename = parse_strip(filename);
695
754
model_prep(model);
696
755
return(0);
697
756
}
1314
1373
  /* set frame if don't want last? */
1315
1374
  strcpy(model->filename, filename);
1316
1375
  g_free(model->basename);
1317
 
  model->basename = strdup_basename(filename);
 
1376
  model->basename = parse_strip(filename);
1318
1377
 
1319
1378
  model->num_frames = model->cur_frame = frame;
1320
1379
  model->cur_frame--;