Skip to content
This repository has been archived by the owner on Sep 30, 2021. It is now read-only.

Commit

Permalink
default files
Browse files Browse the repository at this point in the history
  • Loading branch information
Young-Woo Choe committed Apr 8, 2016
0 parents commit 113816c
Show file tree
Hide file tree
Showing 30 changed files with 6,609 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
lib
*.o
*.x
*.mod
run
test

45 changes: 45 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Makefile for siesta
#
.SUFFIXES: .f .F .o .a .f90 .F90

VPATH=.
#
default: main
#
include arch.make

DMFT_OBJS = ed_config.o ed_hamiltonian.o ed_solver.o ed_utils.o ed_operators.o

MOD_OBJS = sys.o parallel_params.o precision.o
OBJS = main.o $(DMFT_OBJS)

COM_OBJS=$(OBJS) $(SYSOBJ)
ALL_OBJS=$(MOD_OBJS) $(COM_OBJS)

##################
### FDF Module ###
##################
FDF=libfdf.a
$(FDF):
(cd fdf ; $(MAKE) "VPATH=$(VPATH)/fdf" \
"FPPFLAGS=$(FPPFLAGS)" module )

# Dependencies
main.o ed_config.o: $(FDF)

main.o: parallel_params.o ed_config.o ed_hamiltonian.o ed_solver.o
ed_solver.o: ed_utils.o
ed_hamiltonian.o: ed_operators.o ed_utils.o

main: $(FDF) $(ALL_OBJS)
$(FC) -o main.x $(LDFLAGS) $(ALL_OBJS) $(FDF) $(LIBS)
#
clean:
@echo "==> Cleaning object, library, and executable files"
rm -f main *.o *.a
rm -f *.mod
(cd fdf ; $(MAKE) clean)
#
%.o:%.mod


20 changes: 20 additions & 0 deletions arch.make
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#
SIESTA_ARCH = ifort-mpich
FC = mpif90
FFLAGS = -traceback
LIBS = -mkl=sequential

################################################################

RANLIB = ranlib
DEFS = -DMPI -DDEBUG
#
.F.o:
$(FC) -c $(FFLAGS) $(DEFS) $<
.f.o:
$(FC) -c $(FFLAGS) $<
.F90.o:
$(FC) -c $(FFLAGS) $(DEFS) $<
.f90.o:
$(FC) -c $(FFLAGS) $<
#
49 changes: 49 additions & 0 deletions ed_config.f90
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
module ed_config
use precision
use fdf

implicit none

! dimensions of the problem
integer :: Norb
integer :: Nbath
integer :: Nsite

integer :: Nsector
integer, allocatable :: Nelec(:)
integer, allocatable :: Nup(:)

! physical parameters
real(dp) :: U
real(dp) :: Jex
real(dp) :: rMu
real(dp) :: beta

real(dp), allocatable :: ek(:)
real(dp), allocatable :: vk(:,:)

! calculation parameters
real(dp) :: small
real(dp) :: scf_tol
integer :: Nstep
integer :: Niter
integer :: Nev

integer :: Nq
integer :: Nw

integer :: kind_basis = 4
contains

subroutine ed_config_init

Norb = fdf_integer("DMFT.Norbs",2)
Nbath = fdf_integer("DMFT.Nbaths",2)
Nsite = Norb+Nbath


end subroutine ed_config_init



end module ed_config
Loading

0 comments on commit 113816c

Please sign in to comment.