Move gmx_fatal.* to utility/fatalerror.*
authorTeemu Murtola <teemu.murtola@gmail.com>
Sat, 5 Apr 2014 03:16:57 +0000 (06:16 +0300)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Tue, 8 Apr 2014 15:38:14 +0000 (17:38 +0200)
commit1fe1fb548d688168404b0fa2ea94491bad6dcaa5
tree2e11d31711d9ef38fd8ddaee3f75a10e6675d227
parent7d5a7318ff874d93cb8711b54d509a12aa9fddc3
Move gmx_fatal.* to utility/fatalerror.*

One more included-by-all header to utility/.
Mainly mechanical replacement of include paths, some reordering in C++
files.  Minor clean-up in the moved files.
gmx_fatal_collective.h not moved at this point, as it is unclear whether
it should go here, or somewhere else (utility/ should not depend on
t_commrec...).

Now, it's mainly types/simple.h that prevents removing some module-level
dependencies to legacyheaders/.  Finding a good location for that (or
its contents, if it needs to be split), and reorganizing the code a bit
more should now allow really putting utility/ at the bottom of the
dependency stack where it belongs.

Part of #1415.

Change-Id: I6e487566d5bd7c9ec7a1455a2d31bd6d645bada3
264 files changed:
src/contrib/anaf.c
src/contrib/do_multiprot.c
src/contrib/do_shift.c
src/contrib/ehanal.c
src/contrib/ehdata.c
src/contrib/ehole.c
src/contrib/gmx_sdf.c
src/contrib/mkice.c
src/contrib/pmetest.c
src/contrib/test.c
src/contrib/test_fatal.c
src/gromacs/commandline/pargs.cpp
src/gromacs/essentialdynamics/edsam.c
src/gromacs/fft/fft.c
src/gromacs/fft/fft5d.cpp
src/gromacs/fft/fft_fftpack.c
src/gromacs/fft/fft_fftw3.cpp
src/gromacs/fft/fft_mkl.c
src/gromacs/fft/parallel_3dfft.c
src/gromacs/fileio/confio.c
src/gromacs/fileio/enxio.c
src/gromacs/fileio/filenm.c
src/gromacs/fileio/futil.cpp
src/gromacs/fileio/gmxfio.c
src/gromacs/fileio/gmxfio_asc.c
src/gromacs/fileio/gmxfio_xdr.c
src/gromacs/fileio/matio.cpp
src/gromacs/fileio/mdoutf.c
src/gromacs/fileio/pdbio.c
src/gromacs/fileio/strdb.c
src/gromacs/fileio/timecontrol.c
src/gromacs/fileio/tngio.cpp
src/gromacs/fileio/tngio_for_tools.cpp
src/gromacs/fileio/tpxio.c
src/gromacs/fileio/trnio.c
src/gromacs/fileio/trxio.c
src/gromacs/fileio/writeps.c
src/gromacs/fileio/xdrd.c
src/gromacs/fileio/xtcio.c
src/gromacs/gmxana/anadih.c
src/gromacs/gmxana/autocorr.c
src/gromacs/gmxana/binsearch.c
src/gromacs/gmxana/dlist.c
src/gromacs/gmxana/edittop.c
src/gromacs/gmxana/expfit.c
src/gromacs/gmxana/fitahx.c
src/gromacs/gmxana/geminate.c
src/gromacs/gmxana/gmx_anadock.c
src/gromacs/gmxana/gmx_anaeig.c
src/gromacs/gmxana/gmx_analyze.c
src/gromacs/gmxana/gmx_angle.c
src/gromacs/gmxana/gmx_bar.c
src/gromacs/gmxana/gmx_bundle.c
src/gromacs/gmxana/gmx_chi.c
src/gromacs/gmxana/gmx_cluster.c
src/gromacs/gmxana/gmx_clustsize.c
src/gromacs/gmxana/gmx_confrms.c
src/gromacs/gmxana/gmx_covar.c
src/gromacs/gmxana/gmx_current.c
src/gromacs/gmxana/gmx_density.c
src/gromacs/gmxana/gmx_densmap.c
src/gromacs/gmxana/gmx_densorder.cpp
src/gromacs/gmxana/gmx_dielectric.c
src/gromacs/gmxana/gmx_dipoles.cpp
src/gromacs/gmxana/gmx_disre.c
src/gromacs/gmxana/gmx_do_dssp.c
src/gromacs/gmxana/gmx_dos.c
src/gromacs/gmxana/gmx_dyecoupl.c
src/gromacs/gmxana/gmx_dyndom.c
src/gromacs/gmxana/gmx_editconf.c
src/gromacs/gmxana/gmx_eneconv.c
src/gromacs/gmxana/gmx_enemat.c
src/gromacs/gmxana/gmx_energy.c
src/gromacs/gmxana/gmx_genion.c
src/gromacs/gmxana/gmx_genpr.c
src/gromacs/gmxana/gmx_gyrate.c
src/gromacs/gmxana/gmx_h2order.c
src/gromacs/gmxana/gmx_hbond.c
src/gromacs/gmxana/gmx_helix.c
src/gromacs/gmxana/gmx_helixorient.c
src/gromacs/gmxana/gmx_hydorder.c
src/gromacs/gmxana/gmx_make_edi.c
src/gromacs/gmxana/gmx_make_ndx.c
src/gromacs/gmxana/gmx_mdmat.c
src/gromacs/gmxana/gmx_mk_angndx.c
src/gromacs/gmxana/gmx_morph.c
src/gromacs/gmxana/gmx_msd.c
src/gromacs/gmxana/gmx_nmens.c
src/gromacs/gmxana/gmx_nmtraj.c
src/gromacs/gmxana/gmx_order.c
src/gromacs/gmxana/gmx_pme_error.cpp
src/gromacs/gmxana/gmx_potential.c
src/gromacs/gmxana/gmx_rdf.c
src/gromacs/gmxana/gmx_rms.c
src/gromacs/gmxana/gmx_rotacf.c
src/gromacs/gmxana/gmx_saltbr.c
src/gromacs/gmxana/gmx_sans.c
src/gromacs/gmxana/gmx_sham.c
src/gromacs/gmxana/gmx_sorient.c
src/gromacs/gmxana/gmx_spol.c
src/gromacs/gmxana/gmx_tcaf.c
src/gromacs/gmxana/gmx_traj.c
src/gromacs/gmxana/gmx_trjcat.c
src/gromacs/gmxana/gmx_trjconv.c
src/gromacs/gmxana/gmx_trjorder.c
src/gromacs/gmxana/gmx_tune_pme.c
src/gromacs/gmxana/gmx_velacc.c
src/gromacs/gmxana/gmx_wham.cpp
src/gromacs/gmxana/gmx_wheel.c
src/gromacs/gmxana/gmx_xpm2ps.c
src/gromacs/gmxana/hxprops.c
src/gromacs/gmxana/nrama.c
src/gromacs/gmxana/nsfactor.c
src/gromacs/gmxana/polynomials.c
src/gromacs/gmxana/powerspect.c
src/gromacs/gmxana/pp2shift.c
src/gromacs/gmxlib/atomprop.c
src/gromacs/gmxlib/bondfree.c
src/gromacs/gmxlib/calcgrid.c
src/gromacs/gmxlib/calch.c
src/gromacs/gmxlib/chargegroup.c
src/gromacs/gmxlib/checkpoint.c
src/gromacs/gmxlib/cuda_tools/cudautils.cuh
src/gromacs/gmxlib/disre.c
src/gromacs/gmxlib/gmx_detect_hardware.c
src/gromacs/gmxlib/gmx_omp_nthreads.c
src/gromacs/gmxlib/gmx_thread_affinity.c
src/gromacs/gmxlib/index.c
src/gromacs/gmxlib/inputrec.c
src/gromacs/gmxlib/invblock.c
src/gromacs/gmxlib/main.cpp
src/gromacs/gmxlib/mshift.c
src/gromacs/gmxlib/mtop_util.c
src/gromacs/gmxlib/mvdata.c
src/gromacs/gmxlib/network.c
src/gromacs/gmxlib/nonbonded/nb_free_energy.c
src/gromacs/gmxlib/nonbonded/nb_generic.c
src/gromacs/gmxlib/nonbonded/nb_generic_adress.c
src/gromacs/gmxlib/nonbonded/nb_generic_cg.c
src/gromacs/gmxlib/nonbonded/nb_kernel.c
src/gromacs/gmxlib/nonbonded/nonbonded.c
src/gromacs/gmxlib/orires.c
src/gromacs/gmxlib/pbc.c
src/gromacs/gmxlib/readinp.c
src/gromacs/gmxlib/rmpbc.c
src/gromacs/gmxlib/sfactor.c
src/gromacs/gmxlib/sighandler.c
src/gromacs/gmxlib/splitter.c
src/gromacs/gmxlib/symtab.c
src/gromacs/gmxlib/topsort.c
src/gromacs/gmxlib/txtdump.c
src/gromacs/gmxlib/viewit.c
src/gromacs/gmxlib/warninp.c
src/gromacs/gmxlib/xvgr.cpp
src/gromacs/gmxpreprocess/add_par.c
src/gromacs/gmxpreprocess/calc_verletbuf.c
src/gromacs/gmxpreprocess/convparm.c
src/gromacs/gmxpreprocess/fflibutil.cpp
src/gromacs/gmxpreprocess/gen_ad.c
src/gromacs/gmxpreprocess/gen_vsite.c
src/gromacs/gmxpreprocess/genconf.c
src/gromacs/gmxpreprocess/genhydro.c
src/gromacs/gmxpreprocess/gmxcpp.c
src/gromacs/gmxpreprocess/gpp_atomtype.c
src/gromacs/gmxpreprocess/gpp_nextnb.c
src/gromacs/gmxpreprocess/grompp.c
src/gromacs/gmxpreprocess/h_db.c
src/gromacs/gmxpreprocess/hizzie.c
src/gromacs/gmxpreprocess/insert-molecules.cpp
src/gromacs/gmxpreprocess/nm2type.c
src/gromacs/gmxpreprocess/pdb2gmx.c
src/gromacs/gmxpreprocess/pdb2top.cpp
src/gromacs/gmxpreprocess/pgutil.c
src/gromacs/gmxpreprocess/protonate.c
src/gromacs/gmxpreprocess/readadress.c
src/gromacs/gmxpreprocess/readir.c
src/gromacs/gmxpreprocess/readpull.c
src/gromacs/gmxpreprocess/readrot.c
src/gromacs/gmxpreprocess/resall.c
src/gromacs/gmxpreprocess/solvate.cpp
src/gromacs/gmxpreprocess/ter_db.c
src/gromacs/gmxpreprocess/tomorse.c
src/gromacs/gmxpreprocess/topdirs.c
src/gromacs/gmxpreprocess/topio.c
src/gromacs/gmxpreprocess/toppush.c
src/gromacs/gmxpreprocess/topshake.c
src/gromacs/gmxpreprocess/toputil.c
src/gromacs/gmxpreprocess/vsite_parm.c
src/gromacs/gmxpreprocess/x2top.c
src/gromacs/gmxpreprocess/xlate.c
src/gromacs/imd/imd.c
src/gromacs/imd/imdsocket.c
src/gromacs/legacyheaders/gmx_hash.h
src/gromacs/legacyheaders/network.h
src/gromacs/legacyheaders/vec.h
src/gromacs/linearalgebra/eigensolver.c
src/gromacs/linearalgebra/matrix.c
src/gromacs/linearalgebra/mtxio.c
src/gromacs/linearalgebra/nrjac.c
src/gromacs/math/3dview.c
src/gromacs/math/do_fit.c
src/gromacs/mdlib/adress.c
src/gromacs/mdlib/clincs.c
src/gromacs/mdlib/constr.c
src/gromacs/mdlib/coupling.c
src/gromacs/mdlib/csettle.c
src/gromacs/mdlib/domdec.c
src/gromacs/mdlib/domdec_box.c
src/gromacs/mdlib/domdec_con.c
src/gromacs/mdlib/domdec_top.c
src/gromacs/mdlib/ebin.c
src/gromacs/mdlib/ewald.c
src/gromacs/mdlib/expanded.c
src/gromacs/mdlib/force.c
src/gromacs/mdlib/forcerec.c
src/gromacs/mdlib/genborn.c
src/gromacs/mdlib/genborn_sse2_double.c
src/gromacs/mdlib/genborn_sse2_single.c
src/gromacs/mdlib/init.c
src/gromacs/mdlib/iteratedconstraints.c
src/gromacs/mdlib/mdebin_bar.c
src/gromacs/mdlib/minimize.c
src/gromacs/mdlib/nbnxn_cuda/nbnxn_cuda_data_mgmt.cu
src/gromacs/mdlib/nbnxn_kernels/nbnxn_kernel_file_generator/nbnxn_kernel_simd_template.c.pre
src/gromacs/mdlib/nbnxn_kernels/simd_2xnn/nbnxn_kernel_simd_2xnn.c
src/gromacs/mdlib/nbnxn_kernels/simd_4xn/nbnxn_kernel_simd_4xn.c
src/gromacs/mdlib/nlistheuristics.c
src/gromacs/mdlib/ns.c
src/gromacs/mdlib/nsgrid.c
src/gromacs/mdlib/pme.c
src/gromacs/mdlib/pme_pp.c
src/gromacs/mdlib/qm_gamess.c
src/gromacs/mdlib/qm_gaussian.c
src/gromacs/mdlib/qm_mopac.c
src/gromacs/mdlib/qm_orca.c
src/gromacs/mdlib/qmmm.c
src/gromacs/mdlib/shellfc.c
src/gromacs/mdlib/stat.c
src/gromacs/mdlib/tables.c
src/gromacs/mdlib/tpi.c
src/gromacs/mdlib/wnblist.c
src/gromacs/pulling/pullutil.c
src/gromacs/selection/indexutil.cpp
src/gromacs/simd/impl_reference/impl_reference.h
src/gromacs/timing/wallcycle.c
src/gromacs/tools/check.c
src/gromacs/tools/compare.c
src/gromacs/tools/convert_tpr.c
src/gromacs/tools/dump.c
src/gromacs/utility/CMakeLists.txt
src/gromacs/utility/cstringutil.c
src/gromacs/utility/fatalerror.c [moved from src/gromacs/gmxlib/gmx_fatal.c with 97% similarity]
src/gromacs/utility/fatalerror.h [moved from src/gromacs/legacyheaders/gmx_fatal.h with 98% similarity]
src/gromacs/utility/gmxomp.cpp
src/gromacs/utility/smalloc.c
src/programs/mdrun/mdrun.cpp
src/programs/view/dialogs.cpp
src/programs/view/filter.cpp
src/programs/view/nmol.cpp
src/programs/view/view.cpp
src/programs/view/xdlg.cpp
src/programs/view/xdlghi.cpp
src/programs/view/xdlgitem.cpp
src/programs/view/xmb.cpp