Skip to content

Commit

Permalink
Rename project from ctseg-J to ctseg
Browse files Browse the repository at this point in the history
  • Loading branch information
Wentzell committed May 15, 2024
1 parent 67dfec7 commit a4e4497
Show file tree
Hide file tree
Showing 84 changed files with 34 additions and 34 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ endif()

# ############
# Define Project
project(triqs_ctseg-J VERSION 3.3.0 LANGUAGES C CXX)
project(triqs_ctseg VERSION 3.3.0 LANGUAGES C CXX)
get_directory_property(IS_SUBPROJECT PARENT_DIRECTORY)

# ############
Expand Down Expand Up @@ -148,7 +148,7 @@ if(BUILD_DEBIAN_PACKAGE AND NOT IS_SUBPROJECT)
set(CPACK_PACKAGE_NAME ${PROJECT_NAME})
set(CPACK_GENERATOR "DEB")
set(CPACK_PACKAGE_VERSION ${PROJECT_VERSION})
set(CPACK_PACKAGE_CONTACT "https://github.com/TRIQS/ctseg-J")
set(CPACK_PACKAGE_CONTACT "https://github.com/TRIQS/ctseg")
execute_process(COMMAND dpkg --print-architecture OUTPUT_VARIABLE CMAKE_DEBIAN_PACKAGE_ARCHITECTURE OUTPUT_STRIP_TRAILING_WHITESPACE)
set(CPACK_DEBIAN_PACKAGE_DEPENDS "triqs (>= 3.3)")
set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[![build](https://github.com/TRIQS/ctseg-J/workflows/build/badge.svg)](https://github.com/TRIQS/ctseg-J/actions?query=workflow%3Abuild)
[![build](https://github.com/TRIQS/ctseg/workflows/build/badge.svg)](https://github.com/TRIQS/ctseg/actions?query=workflow%3Abuild)

## TRIQS segment picture solver with spin-spin interactions (CTSEG-J)

Copyright (C) 2024, N. Kavokine, H. Lu, N. Wentzell and O. Parcollet.

### Documentation

For documentation and installation instructions see [triqs.github.io/ctseg-J](https://triqs.github.io/ctseg-J).
For documentation and installation instructions see [triqs.github.io/ctseg](https://triqs.github.io/ctseg).

### License

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ struct segment_t {
bool J_c = false, J_cdag = false; // Whether c (resp cdag) is part of a S operator

/// Length of segment (accounts for cyclicity : length from c to cdag possibly across 0/beta)
tau_t length() const { return tau_c - tau_cdag; };
[[nodiscard]] tau_t length() const { return tau_c - tau_cdag; };

/// A segment [beta, 0] represent a full line
static segment_t full_line() { return {tau_t::beta(), tau_t::zero()}; }
Expand Down Expand Up @@ -74,7 +74,7 @@ struct configuration_t {
configuration_t(int n_color) : seglists(n_color) {}

// Accessor number of colors
int n_color() const { return seglists.size(); }
[[nodiscard]] int n_color() const { return seglists.size(); }
};

// =================== Functions to manipulate segments ===================
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion c++/triqs_ctseg-J/tau_t.hpp → c++/triqs_ctseg/tau_t.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class tau_t {
/// Not for users. Use the factories
tau_t(uint64_t n_) : n(n_) {}
/// For test only, not for users. Use the factories
tau_t(double x) : n(0) {
tau_t(double x) {
if ((x > _beta || x < 0)) {
throw std::invalid_argument("Time tau must be in the range [0, beta]");
} else if (x == _beta)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion doc/documentation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ Reference manual
:template: autosummary_module_template.rst
:recursive:

triqs_ctseg-J.solver
triqs_ctseg.solver

2 changes: 1 addition & 1 deletion doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ The imaginary time action solved by CTSEG-J is of the form
.. image:: _static/logo_github.png
:width: 65%
:align: center
:target: https://github.com/triqs/ctseg-J
:target: https://github.com/triqs/ctseg

Here :math:`\beta` is the inverse temperature, :math:`a` denote orbital indices, :math:`\sigma` spin indices (:math:`\sigma = \uparrow, \downarrow`),
:math:`n_a \equiv \sum_{\sigma} n_{a\sigma}`, :math:`s_a^{\xi} \equiv \frac{1}{2} \sum_{\sigma \sigma'} \overline{c}_{a\sigma}
Expand Down
14 changes: 7 additions & 7 deletions doc/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,21 @@ Prerequisites
Installation steps
------------------

#. Download the source code of the latest stable version by cloning the ``TRIQS/ctseg-J`` repository from GitHub::
#. Download the source code of the latest stable version by cloning the ``TRIQS/ctseg`` repository from GitHub::

$ git clone https://github.com/TRIQS/ctseg-J ctseg.src
$ git clone https://github.com/TRIQS/ctseg ctseg.src

#. Create and move to a new directory where you will compile the code::

$ mkdir ctseg-J.build && cd ctseg-J.build
$ mkdir ctseg.build && cd ctseg.build

#. Ensure that your shell contains the TRIQS environment variables by sourcing the ``triqsvars.sh`` file from your TRIQS installation::

$ source path_to_triqs/share/triqs/triqsvars.sh

#. In the build directory call cmake, including any additional custom CMake options, see below::

$ cmake ../ctseg-J.src
$ cmake ../ctseg.src

#. Compile the code, run the tests and install the application::

Expand All @@ -49,7 +49,7 @@ see :ref:`TRIQS website <triqslibs:versions>`.
In particular the Major and Minor Version numbers have to be the same.
To use a particular version, go into the directory with the sources, and look at all available versions::

$ cd ctseg-J.src && git tag
$ cd ctseg.src && git tag

Checkout the version of the code that you want::

Expand All @@ -62,12 +62,12 @@ Custom CMake options

The compilation of ``CTSEG-J`` can be configured using CMake-options::

cmake ../ctseg-J.src -DOPTION1=value1 -DOPTION2=value2 ...
cmake ../ctseg.src -DOPTION1=value1 -DOPTION2=value2 ...

+-----------------------------------------------------------------+-----------------------------------------------+
| Options | Syntax |
+=================================================================+===============================================+
| Specify an installation path other than path_to_triqs | -DCMAKE_INSTALL_PREFIX=path_to_ctseg-J |
| Specify an installation path other than path_to_triqs | -DCMAKE_INSTALL_PREFIX=path_to_ctseg |
+-----------------------------------------------------------------+-----------------------------------------------+
| Build in Debugging Mode | -DCMAKE_BUILD_TYPE=Debug |
+-----------------------------------------------------------------+-----------------------------------------------+
Expand Down
2 changes: 1 addition & 1 deletion doc/issues.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Reporting issues
****************

Please report all problems and bugs directly at the github issue page
`<https://github.com/TRIQS/ctseg-J/issues>`_. In order to make it easier for us
`<https://github.com/TRIQS/ctseg/issues>`_. In order to make it easier for us
to solve the issue please follow these guidelines:

#. In all cases specify which version of the application you are using. You can
Expand Down
8 changes: 4 additions & 4 deletions packaging/TRIQS-ctseg-foss-2021b.eb.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@ easyblock = 'CMakeMake'
name = 'TRIQS-ctseg'
version = '@PROJECT_VERSION@'

homepage = 'https://triqs.github.io/ctseg-J/'
homepage = 'https://triqs.github.io/ctseg/'
description = """
PROVIDE HERE A DESCRIPTION OF YOUR APPLICATION
"""

docurls = ['https://triqs.github.io/ctseg-J/%(version_major_minor)s.x/']
docurls = ['https://triqs.github.io/ctseg/%(version_major_minor)s.x/']
software_license = 'LicenseGPLv3'

toolchain = {'name': 'foss', 'version': '2021b'}
toolchainopts = {'pic': True, 'usempi': True}

source_urls = ['https://github.com/TRIQS/ctseg-J/releases/download/%(version)s/']
sources = ['ctseg-J-%(version)s.tar.gz']
source_urls = ['https://github.com/TRIQS/ctseg/releases/download/%(version)s/']
sources = ['ctseg-%(version)s.tar.gz']
checksums = ['PUT HERE THE SHA256 OF THE RELEASE TARBALL']

dependencies = [
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Generated automatically using the command :
# c++2py ../../c++/triqs_ctseg-J/solver_core.hpp -p --members_read_only -a triqs_ctseg -m solver_core -o solver_core --only="results_t solver_core" --moduledoc="The python module for triqs_ctseg" -C triqs -C nda_py --includes=../../c++ --includes=/usr/local/include/ --cxxflags="-std=c++20" --target_file_only
# c++2py ../../c++/triqs_ctseg/solver_core.hpp -p --members_read_only -a triqs_ctseg -m solver_core -o solver_core --only="results_t solver_core" --moduledoc="The python module for triqs_ctseg" -C triqs -C nda_py --includes=../../c++ --includes=/usr/local/include/ --cxxflags="-std=c++20" --target_file_only
from cpp2py.wrap_generator import *

# The module
Expand All @@ -9,7 +9,7 @@
module.add_imports(*['triqs.gf', 'triqs.gf.meshes', 'triqs.operators', 'triqs.stat.histograms', 'h5._h5py'])

# Add here all includes
module.add_include("triqs_ctseg-J/solver_core.hpp")
module.add_include("triqs_ctseg/solver_core.hpp")

# Add here anything to add in the C++ code at the start, e.g. namespace using
module.add_preamble("""
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion test/c++/anderson.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <cmath>
#include <triqs/test_tools/gfs.hpp>
#include <triqs/test_tools/arrays.hpp>
#include <triqs_ctseg-J/solver_core.hpp>
#include <triqs_ctseg/solver_core.hpp>

using triqs::operators::n;

Expand Down
2 changes: 1 addition & 1 deletion test/c++/dynamical_U.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <cmath>
#include <triqs/test_tools/gfs.hpp>
#include <triqs_ctseg-J/solver_core.hpp>
#include <triqs_ctseg/solver_core.hpp>

using triqs::operators::n;
TEST(CTSEGJ, Dynamical_U) {
Expand Down
2 changes: 1 addition & 1 deletion test/c++/jperp.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <cmath>
#include <triqs/test_tools/gfs.hpp>
#include <triqs_ctseg-J/solver_core.hpp>
#include <triqs_ctseg/solver_core.hpp>

using triqs::operators::n;

Expand Down
4 changes: 2 additions & 2 deletions test/c++/segments.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

#include <cmath>
#include <triqs/test_tools/arrays.hpp>
#include <triqs_ctseg-J/tau_t.hpp>
#include <triqs_ctseg-J/configuration.hpp>
#include <triqs_ctseg/tau_t.hpp>
#include <triqs_ctseg/configuration.hpp>

using vs_t = std::vector<segment_t>;

Expand Down
2 changes: 1 addition & 1 deletion test/c++/spin_spin.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <cmath>
#include <triqs/test_tools/gfs.hpp>
#include <triqs_ctseg-J/solver_core.hpp>
#include <triqs_ctseg/solver_core.hpp>

using triqs::operators::n;

Expand Down
2 changes: 1 addition & 1 deletion test/c++/tau_t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include <cmath>
#include <triqs/test_tools/arrays.hpp>
#include <triqs_ctseg-J/tau_t.hpp>
#include <triqs_ctseg/tau_t.hpp>

TEST(tau, basic) {

Expand Down
Binary file modified test/python/ctint.ref.h5
Binary file not shown.
2 changes: 1 addition & 1 deletion test/python/dimer.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import triqs.utility.mpi as mpi
from triqs.utility.h5diff import h5diff

from triqs_ctseg-J import Solver
from triqs_ctseg import Solver

from numpy import matrix, array, block, diag, eye
from numpy.linalg import inv
Expand Down
2 changes: 1 addition & 1 deletion test/python/multiorb.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from triqs.operators import *
from h5 import *
import numpy as np
from triqs_ctseg-J import SolverCore as Solver
from triqs_ctseg import SolverCore as Solver
import h5
from triqs.utility.h5diff import h5diff

Expand Down
2 changes: 1 addition & 1 deletion test/python/py_spin_spin.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from triqs.operators import *
import h5
from triqs.utility.h5diff import h5diff
from triqs_ctseg-J import SolverCore as Solver
from triqs_ctseg import SolverCore as Solver

# Parameters
beta = 10
Expand Down
2 changes: 1 addition & 1 deletion test/python/two_orbitals.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from h5 import *
import numpy as np
from triqs.utility.h5diff import h5diff
from triqs_ctseg-J import SolverCore as Solver
from triqs_ctseg import SolverCore as Solver

#number of orbitals
n_orb = 2
Expand Down

0 comments on commit a4e4497

Please sign in to comment.