This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/CMakeLists.txt b/CMakeLists.txt | |
index 5b0331d..0196ad7 100644 | |
--- a/CMakeLists.txt | |
+++ b/CMakeLists.txt | |
@@ -196,7 +196,9 @@ endif() # for the MKL configuration | |
if(CMAKE_CXX_COMPILER_ID MATCHES GNU) | |
# Ad-hoc modifications to compile and link with g++. | |
add_compile_options(-O3) | |
- add_compile_options(-m64) | |
+ if(CMAKE_SYSTEM_PROCESSOR MATCHES x86_64) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get -y install libblas-dev libfftw3-dev liblapack-dev libscalapack-mpi-dev mpi-default-dev | |
wget http://t-ozaki.issp.u-tokyo.ac.jp/openmx3.9.tar.gz | |
wget http://www.openmx-square.org/bugfixed/21Aug21/patch3.9.6.tar.gz | |
tar zxvf openmx3.9.tar.gz | |
cd openmx3.9/source | |
tar zxvf ../../patch3.9.6.tar.gz | |
make CC="mpicc -O3 -fopenmp -Dkcomp" FC="mpif90 -O3 -fopenmp -Dkcomp" LIB="-lscalapack-openmpi -lfftw3 -llapack -lblas -lgfortran -lmpi_mpifh -lm" all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-0.0005000 0.0000000 0.0000000 0.0000000 0.0000000 | |
-0.0004990 0.0000000 0.0000000 0.0000000 0.0000000 | |
-0.0004980 0.0000000 0.0000000 0.0000000 0.0000000 | |
-0.0004970 0.0000000 0.0000000 0.0000000 0.0000000 | |
-0.0004960 0.0000000 0.0000000 0.0000000 0.0000000 | |
-0.0004950 0.0000000 0.0000000 0.0000000 0.0000000 | |
-0.0004940 0.0000000 0.0000000 0.0000000 0.0000000 | |
-0.0004930 0.0000000 0.0000000 0.0000000 0.0000000 | |
-0.0004920 0.0000000 0.0000000 0.0000000 0.0000000 | |
-0.0004910 0.0000000 0.0000000 0.0000000 0.0000000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*main.aux | |
*main.dvi | |
*main.fdb_latexmk | |
*main.fls | |
*main.log | |
*main.pdf | |
*main.synctex.gz | |
diff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
$latex = 'platex -synctex=1 -halt-on-error'; | |
$latex_silent = 'platex -synctex=1 -halt-on-error -interaction=batchmode'; | |
$bibtex = 'pbibtex'; | |
$dvipdf = 'dvipdfmx %O -o %D %S'; | |
$makeindex = 'mendex %O -o %D %S'; | |
$max_repeat = 5; | |
$pdf_mode = 3; | |
$pvc_view_file_via_temporary = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma omp parallel | |
{ | |
int tid = omp_get_thread_num(); | |
for (int p = 0; p < num_threads; ++p) { | |
if (p == tid) | |
gens[p].reset(new boost::mt19937(seed_gen)); | |
#pragma omp barrier | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -x | |
# ソースコードとパッチのダウンロード | |
wget https://github.com/QLMS/HPhi/releases/download/v2.0.0/HPhi-2.0.0.tar.gz | |
wget https://gist.github.com/wistaria/3d316f0d90a4949fe71dcb843769175f/raw/HPhi-2.0.0.patch | |
# コードの展開とパッチの適用 | |
tar zxf HPhi-2.0.0.tar.gz | |
cd HPhi-2.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/komega/CMakeLists.txt b/src/komega/CMakeLists.txt | |
index bbb42633..a1fda843 100644 | |
--- a/src/komega/CMakeLists.txt | |
+++ b/src/komega/CMakeLists.txt | |
@@ -5,9 +5,14 @@ if(${CMAKE_PROJECT_NAME} STREQUAL "Project") | |
endif(${CMAKE_PROJECT_NAME} STREQUAL "Project") | |
set(SOURCES_KOMEGA komega_bicg.F90 komega_math.F90 komega_vals.F90) | |
-add_definitions(${MPI_Fortran_COMPILE_FLAGS}) | |
-include_directories(${MPI_Fortran_INCLUDE_PATH}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*** alps_20160816~r7711.orig/tool/alpsvars.sh.in | |
--- alps_20160816~r7711/tool/alpsvars.sh.in | |
*************** | |
*** 4,11 **** | |
# (See accompanying file LICENSE_1_0.txt or copy at | |
# http://www.boost.org/LICENSE_1_0.txt) | |
! ALPS_HOME="@CMAKE_INSTALL_PREFIX@"; export ALPS_HOME | |
! ALPS_ROOT="@CMAKE_INSTALL_PREFIX@"; export ALPS_ROOT | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# ソースのダウンロード | |
mkdir alps-build | |
cd alps-build | |
wget -O - https://sourceforge.net/projects/boost/files/boost/1.58.0/boost_1_58_0.tar.bz2 | tar jxf - | |
wget -O - https://sourceforge.net/projects/materiappslive/files/Debian/archive/wheezy/alps_20160816~r7711.orig.tar.gz | tar zxf - | |
wget https://gist.github.com/wistaria/cf77f15fe35c1d145d865f58e7f27377/raw/alps-for-eccs.patch | |
# alpsvars.shへのパッチ |
NewerOlder