tjsmart / zfs-code Goto Github PK
View Code? Open in Web Editor NEWZero Field Splitting Code Repository
Zero Field Splitting Code Repository
Need to better handle 'make install' for fftw library.
Switch to using namelists similar to QE. A minimum working example is demonstrated below.
Here is a minimal fortran code
cat > min.f90 << EOF
program min
implicit none
integer :: a
logical :: flag
real :: gamma
namelist /input/ a, gamma, flag
open(10, file="file.in")
read(10, nml=input)
close(10)
print *, "a = ", a
print *, "flag = ", flag
print *, "gamma = ", gamma
end program min
EOF
Compile the program
gfortran min.f90
Create an input file
cat > "file.in" << EOF
&input
a = 2,
flag = .true., gamma = 3.141520
/
EOF
Run the calculation
./a.out
faster i/o (binary formatting) and improved interfacing with QE
Instead of main_mpi calling, it would be better if main_mpi returned to main myloop and such and then called main_inner?
Configure needs to link fftdir in make.inc such as:
flags_fft = \
-lfftw3 \
-I$fftdir \
-L$fftdir/../lib
Or something of this sorts
output should be changed in a few ways:
Perhaps other things will come to mind
Need to redirect error messages to stderr (&2).
Currently: echo "Error: ..."
Instead: echo "Error: ..." >&2
Currently G_ab - d3_ab is computed for each set of bands despite the fact it is identical for each set of bands -- it should be computed only once
perhaps called by main and read into zfs_calc
Error when running the code currently with mpi on kairay:
Fatal error in PMPI_Reduce: Invalid root, error stack:
PMPI_Reduce(2334): MPI_Reduce(sbuf=0x7ffe6f51eab0, rbuf=0x7ffe6f51f0e8, count=1, MPI_DOUBLE_COMPLEX, MPI_SUM, root=32686, MPI_COMM_WORLD) failed
PMPI_Reduce(2235): Invalid root (value given was 32686)
mpi_reduce is called at the end of the 'mpi_routine' subroutine in the 'main_mpi' module.
After meeting today with Prof. Ping & Junqing, it is clear that the code needs more testing on two fronts:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.