Skip to content

Commit 282ff9b

Browse files
Serguei PatchkovskiiSerguei Patchkovskii
authored andcommitted
Initial github version
1 parent 4b0be87 commit 282ff9b

File tree

191 files changed

+499953
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

191 files changed

+499953
-0
lines changed

.filters/keywords.clean

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
sed \
3+
-e 's/\$Id[^\$]*\$/\$Id\$/g' \
4+
-e 's/\$Date[^\$]*\$/\$Date\$/g' \
5+
-e 's/\$Author[^\$]*\$/\$Author\$/g' \
6+
-e 's/\$Revision[^\$]*\$/\$Revision\$/g' \
7+
-

.filters/keywords.smudge

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
# Inspired by: https://github.com/turon/git-rcs-keywords/blob/master/.git_filters/rcs-keywords.smudge
3+
filename="${1-"."}"
4+
basename="$(basename "$filename")"
5+
# Read the last commit from the log
6+
author="$(git log -- "$filename" | awk '(NR<=3)&&/^Author: /{print substr($0,8)}')"
7+
date="$(git log -- "$filename" | awk '(NR<=3)&&/^Date: /{print substr($0,8)}')"
8+
ident="$(git log -- "$filename" | awk '(NR<=3)&&/^commit /{print $2}')"
9+
#
10+
sed \
11+
-e 's/\$Date[^\$]*\$/\$Date: '"$date"' \$/g' \
12+
-e 's/\$Author[^\$]*\$/\$Author: '"$author"' \$/g' \
13+
-e 's/\$Revision[^\$]*\$/\$Revision: '"$ident"' \$/g' \
14+
-e 's/\$Id[^\$]*\$/\$Id: '"$basename $date $author"' \$/g' \
15+
-

.github/workflows/build-test.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Build test
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: build
17+
run: make clean ; make
18+
- name: tests
19+
run: cd test ; ./clean.sh ; ./run-all.sh cheap
20+

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,4 @@
3030
*.exe
3131
*.out
3232
*.app
33+
*.x

MANIFEST

Lines changed: 186 additions & 0 deletions
Large diffs are not rendered by default.

Makefile

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
goal: makefile.dep
2+
make sd_v2.x
3+
# superdyson.x and tr_1rdm.x are deprecated
4+
5+
ACT = sed -e 's/^!\*nq/ /' # Disable quad-math statements
6+
7+
IDS := built on $(shell hostname) at $(shell date)
8+
9+
# ifort 18.0.3.222
10+
# F90 = ifort -I. -qopenmp -O3 -fp-model precise -assume protect_parens -heap-arrays 32 -warn -warn -assume buffered_io -gen-interfaces nosource -mkl -debug full -debug extended -traceback -cpp -D__BUILD_ID__='"Optimized ifort, $(IDS)"'
11+
# LIBS =
12+
13+
# gfortran
14+
# OPT
15+
F90 = gfortran -I. -O3 -fprotect-parens -fno-fast-math -march=native -mtune=native -fstack-arrays -fopenmp -fcx-fortran-rules -fno-realloc-lhs -fbacktrace -g -cpp -D__BUILD_ID__='"Optimized gfortran, $(IDS)"'
16+
# F90 = gfortran -I. -Og -fprotect-parens -fno-fast-math -march=native -mtune=native -fstack-arrays -fopenmp -std=gnu -pedantic -Wall -Wno-unused-function -Wno-unused-dummy-argument -fcheck=all -fno-realloc-lhs -ffree-line-length-none -cpp -D__BUILD_ID__='"Debug gfortran, $(IDS)"'
17+
LIBS = -llapack -lblas -lpthread
18+
19+
MAKEFLAGS = -r
20+
21+
.SUFFIXES:
22+
.SUFFIXES: .f90 .o .x .c
23+
24+
OBJS=accuracy.o constants.o block_determinant.o block_diag.o block_matrices.o \
25+
dgedi.o dgefa.o gamess_internal.o import_gamess.o lapack.o math.o versions.o \
26+
os_integral_operators.o printing.o sd_core.o sort_tools.o superdyson.o timer.o tr_1rdm.o
27+
28+
29+
sd_v2.x: sd_v2.f90 $(OBJS)
30+
$(F90) -o sd_v2.x sd_v2.f90 $(OBJS) $(LIBS)
31+
32+
superdyson.x: superdyson_driver.o $(OBJS)
33+
$(F90) -o superdyson.x superdyson_driver.o $(OBJS) $(LIBS)
34+
35+
tr_1rdm.x: tr_1rdm_driver.o $(OBJS)
36+
$(F90) -o tr_1rdm.x tr_1rdm_driver.o $(OBJS) $(LIBS)
37+
38+
dgedi.o: dgedi.f
39+
$(F90) -c dgedi.f
40+
41+
dgefa.o: dgefa.f
42+
$(F90) -c dgefa.f
43+
44+
.f90.o:
45+
$(ACT) $(ACT2) $< >preprocess/$<
46+
$(F90) -c preprocess/$<
47+
48+
clean:
49+
-rm *.o *.mod superdyson.x tr_1rdm.x makefile.dep
50+
51+
makefile.dep: $(shell echo *.f90)
52+
./make-depend.sh $^ > $@
53+
54+
#
55+
# Automatically-generated dependencies
56+
#
57+
include makefile.dep

0 commit comments

Comments
 (0)