Commit b61a4678 by Francois Gygi

Added release and isodate functions


git-svn-id: http://qboxcode.org/svn/qb/trunk@230 cba15fb0-1239-40c8-b417-11db7ca47a34
parent 861cda0d
#-------------------------------------------------------------------------------
# $Id: Makefile,v 1.23 2004-04-17 01:19:03 fgygi Exp $
# $Id: Makefile,v 1.24 2004-05-20 00:21:55 fgygi Exp $
#------------------------------------------------------------------------------
#
include $(TARGET).mk
......@@ -27,7 +27,8 @@ CXXFLAGS += -DTARGET='"$(TARGET)"'
WavefunctionStepper.o SDWavefunctionStepper.o \
MDWavefunctionStepper.o SDIonicStepper.o MDIonicStepper.o \
PSDWavefunctionStepper.o PSDAWavefunctionStepper.o \
SDCellStepper.o ConfinementPotential.o Preconditioner.o
SDCellStepper.o ConfinementPotential.o Preconditioner.o \
release.o isodate.o
$(LD) $(DFLAGS) -o $@ $^ $(LDFLAGS)
SamplePrint: SamplePrint.o SamplePrintHandlers.o
$(LD) $(DFLAGS) -o $@ $^ $(LDFLAGS)
......@@ -55,6 +56,8 @@ CXXFLAGS += -DTARGET='"$(TARGET)"'
testSpecies: testSpecies.o Species.o sinft.o spline.o Context.o \
SpeciesReader.o StructuredDocumentHandler.o SpeciesHandler.o
$(LD) $(DFLAGS) -o $@ $^ $(LDFLAGS)
testXCFunctional: testXCFunctional.o LDAFunctional.o PBEFunctional.o
$(LD) $(DFLAGS) -o $@ $^ $(LDFLAGS)
testMatrix: testMatrix.o Matrix.o Context.o
$(LD) $(DFLAGS) -o $@ $^ $(LDFLAGS)
testFourierTransform: testFourierTransform.o FourierTransform.o \
......@@ -93,6 +96,10 @@ Wavefunction.o Species.o SlaterDet.o spline.o sinft.o Basis.o Matrix.o \
FourierTransform.o UnitCell.o Atom.o BOSampleStepper.o \
SampleStepper.o EnergyFunctional.o
$(LD) $(DFLAGS) -o $@ $^ $(LDFLAGS)
test_fftw: test_fftw.o
$(LD) $(DFLAGS) -o $@ $^ $(LDFLAGS)
test_fftw3: test_fftw3.o
$(LD) $(DFLAGS) -o $@ $^ $(LDFLAGS)
#------------------------------------------------------------------------------
# generate dependencies in makefile: use -Y to avoid library header files
# that are likely to be different on other platforms.
......@@ -203,6 +210,7 @@ HelpCmd.o: UserInterface.h Sample.h AtomSet.h Context.h Atom.h D3vector.h
HelpCmd.o: Species.h Wavefunction.h UnitCell.h Control.h
IonicStepper.o: Sample.h AtomSet.h Context.h Atom.h D3vector.h Species.h
IonicStepper.o: Wavefunction.h UnitCell.h Control.h
isodate.o: isodate.h
LDAFunctional.o: LDAFunctional.h XCFunctional.h
LDAFunctional.o: XCFunctional.h
ListAtomsCmd.o: UserInterface.h Sample.h AtomSet.h Context.h Atom.h
......@@ -261,20 +269,21 @@ PSDWavefunctionStepper.o: Preconditioner.h
PSDWavefunctionStepper.o: WavefunctionStepper.h Sample.h AtomSet.h Context.h
PSDWavefunctionStepper.o: Atom.h D3vector.h Species.h Wavefunction.h
PSDWavefunctionStepper.o: UnitCell.h Control.h Timer.h
qb.o: Context.h UserInterface.h Sample.h AtomSet.h Atom.h D3vector.h
qb.o: Species.h Wavefunction.h UnitCell.h Control.h Timer.h AtomCmd.h
qb.o: HelpCmd.h ListAtomsCmd.h ListSpeciesCmd.h LoadCmd.h PrintCmd.h
qb.o: QuitCmd.h RandomizeWfCmd.h RunCmd.h SaveCmd.h SetCmd.h SpeciesCmd.h
qb.o: StatusCmd.h AtomsDyn.h Cell.h CellDyn.h SlaterDet.h Basis.h Matrix.h
qb.o: CellLock.h CellMass.h Debug.h Ecut.h Ecutprec.h Ecuts.h Emass.h
qb.o: ExtStress.h Dt.h Nempty.h Nrowmax.h RefCell.h Stress.h Thermostat.h
qb.o: ThTemp.h ThTime.h ThWidth.h WfDiag.h WfDyn.h Xc.h
qb.o: isodate.h release.h Context.h UserInterface.h Sample.h AtomSet.h Atom.h
qb.o: D3vector.h Species.h Wavefunction.h UnitCell.h Control.h Timer.h
qb.o: AtomCmd.h HelpCmd.h ListAtomsCmd.h ListSpeciesCmd.h LoadCmd.h
qb.o: PrintCmd.h QuitCmd.h RandomizeWfCmd.h RunCmd.h SaveCmd.h SetCmd.h
qb.o: SpeciesCmd.h StatusCmd.h AtomsDyn.h Cell.h CellDyn.h SlaterDet.h
qb.o: Basis.h Matrix.h CellLock.h CellMass.h Debug.h Ecut.h Ecutprec.h
qb.o: Ecuts.h Emass.h ExtStress.h Dt.h Nempty.h Nrowmax.h RefCell.h Stress.h
qb.o: Thermostat.h ThTemp.h ThTime.h ThWidth.h WfDiag.h WfDyn.h Xc.h
QuitCmd.o: UserInterface.h Sample.h AtomSet.h Context.h Atom.h D3vector.h
QuitCmd.o: Species.h Wavefunction.h UnitCell.h Control.h
RandomizeWfCmd.o: UserInterface.h Sample.h AtomSet.h Context.h Atom.h
RandomizeWfCmd.o: D3vector.h Species.h Wavefunction.h UnitCell.h Control.h
RefCell.o: Sample.h AtomSet.h Context.h Atom.h D3vector.h Species.h
RefCell.o: Wavefunction.h UnitCell.h Control.h
release.o: release.h
RunCmd.o: RunCmd.h UserInterface.h Sample.h AtomSet.h Context.h Atom.h
RunCmd.o: D3vector.h Species.h Wavefunction.h UnitCell.h Control.h
RunCmd.o: EnergyFunctional.h ChargeDensity.h StructureFactor.h Timer.h
......@@ -300,7 +309,8 @@ SampleStepper.o: Timer.h
SampleStepper.o: Sample.h AtomSet.h Context.h Atom.h D3vector.h Species.h
SampleStepper.o: Wavefunction.h UnitCell.h Control.h Timer.h
SaveCmd.o: SaveCmd.h UserInterface.h Sample.h AtomSet.h Context.h Atom.h
SaveCmd.o: D3vector.h Species.h Wavefunction.h UnitCell.h Control.h
SaveCmd.o: D3vector.h Species.h Wavefunction.h UnitCell.h Control.h isodate.h
SaveCmd.o: release.h
SaveCmd.o: UserInterface.h Sample.h AtomSet.h Context.h Atom.h D3vector.h
SaveCmd.o: Species.h Wavefunction.h UnitCell.h Control.h
SDCellStepper.o: SDCellStepper.h CellStepper.h Sample.h AtomSet.h Context.h
......@@ -326,8 +336,6 @@ sinft.o: sinft.h
SlaterDet.o: SlaterDet.h Context.h Basis.h D3vector.h UnitCell.h Matrix.h
SlaterDet.o: Timer.h FourierTransform.h blas.h
SlaterDet.o: Context.h Basis.h D3vector.h UnitCell.h Matrix.h Timer.h
SlaterDet.tmp1.o: SlaterDet.h Context.h Basis.h D3vector.h UnitCell.h
SlaterDet.tmp1.o: Matrix.h Timer.h FourierTransform.h blas.h
Species.o: Species.h Context.h spline.h sinft.h
SpeciesCmd.o: SpeciesCmd.h UserInterface.h Sample.h AtomSet.h Context.h
SpeciesCmd.o: Atom.h D3vector.h Species.h Wavefunction.h UnitCell.h Control.h
......@@ -362,6 +370,7 @@ testEnergyFunctional.o: Context.h Sample.h AtomSet.h Atom.h D3vector.h
testEnergyFunctional.o: Species.h Wavefunction.h UnitCell.h Control.h
testEnergyFunctional.o: EnergyFunctional.h ChargeDensity.h StructureFactor.h
testEnergyFunctional.o: Timer.h
test_fftw3.o: Timer.h
test_fftw.o: Timer.h
testFourierTransform.o: Context.h Basis.h D3vector.h UnitCell.h
testFourierTransform.o: FourierTransform.h Timer.h
......@@ -423,6 +432,7 @@ XCPotential.o: XCFunctional.h PBEFunctional.h BLYPFunctional.h Basis.h
XCPotential.o: D3vector.h UnitCell.h FourierTransform.h blas.h
XCPotential.o: ChargeDensity.h Context.h LDAFunctional.h XCFunctional.h
XCPotential.o: PBEFunctional.h BLYPFunctional.h
xmlextract.o: StrX.h
xmlget.o: StrX.h
XMLGFPreprocessor.o: Timer.h Context.h Base64Transcoder.h Matrix.h
XMLGFPreprocessor.o: XMLGFPreprocessor.h
......
////////////////////////////////////////////////////////////////////////////////
//
// isodate.C
//
////////////////////////////////////////////////////////////////////////////////
// $Id: isodate.C,v 1.1 2004-05-20 00:22:20 fgygi Exp $
#include "isodate.h"
#include <ctime>
std::string isodate(void)
{
const time_t t = time(NULL);
struct tm* tms = gmtime(&t);
char s[32];
const char* fmt = "%Y-%m-%dT%TZ";
strftime(s,32,fmt,tms);
return std::string(s);
}
////////////////////////////////////////////////////////////////////////////////
//
// isodate.h:
//
////////////////////////////////////////////////////////////////////////////////
// $Id: isodate.h,v 1.1 2004-05-20 00:22:20 fgygi Exp $
#ifndef ISODATE_H
#include <string>
std::string isodate(void);
#endif
////////////////////////////////////////////////////////////////////////////////
//
// release.C
//
////////////////////////////////////////////////////////////////////////////////
// $Id: release.C,v 1.1 2004-05-20 00:22:20 fgygi Exp $
#include "release.h"
std::string release(void)
{
return std::string("1.15.2e");
}
////////////////////////////////////////////////////////////////////////////////
//
// release.h:
//
////////////////////////////////////////////////////////////////////////////////
// $Id: release.h,v 1.1 2004-05-20 00:22:20 fgygi Exp $
#ifndef RELEASE_H
#include <string>
std::string release(void);
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment