Skip to content

Commit

Permalink
Merge pull request #902 from tpersson/dist2020june
Browse files Browse the repository at this point in the history
Distribution + energy update (first step) + RF-fringe
  • Loading branch information
madcern committed Jun 8, 2020
2 parents d0f6d91 + 7f106f1 commit 13c02dc
Show file tree
Hide file tree
Showing 32 changed files with 2,996 additions and 18 deletions.
5 changes: 4 additions & 1 deletion .travis.yml
Expand Up @@ -15,7 +15,10 @@ install:
- make numdiff-linux64-gnu

- pip install cython
- git clone https://github.com/hibtc/cpymad.git
- git clone https://github.com/tpersson/cpymad.git
- cd cpymad
- git checkout addingDistribution
- cd ..
- ./buildcpymad.sh
- cd cpymad && python setup.py build_ext --no-X11 --blas --lapack --madxdir=$MADXDIR
- pip install -e .
Expand Down
1 change: 1 addition & 0 deletions CMakeLists.txt 100644 → 100755
Expand Up @@ -30,6 +30,7 @@ include(setupCompilerSpecifics)
include(setupArchSpecifics)

add_subdirectory(libs/ptc)
add_subdirectory(libs/DISTlib)
add_subdirectory(src)
add_subdirectory(tools)
add_subdirectory(syntax)
Expand Down
11 changes: 7 additions & 4 deletions Makefile_c 100644 → 100755
Expand Up @@ -16,16 +16,19 @@
# | $Id$
# |

vpath %.h src
vpath %.c src
vpath %.h src libs/DISTlib/source
vpath %.c src libs/DISTlib/source
vpath %.d $(OBJDIR)

CC_HDR := $(notdir $(wildcard src/mad_*.h))
CC_SRC := $(notdir $(wildcard src/mad_*.c))
CC_HDR :=$(notdir $(wildcard libs/DISTlib/source/*.h src/mad_*.h))
CC_SRC :=$(notdir $(wildcard libs/DISTlib/source/*.c src/mad_*.c))


CC_HDR += madx.h SDDS.h
CC_SRC +=



# files specific dependency flags
$(OBJDIR)/mad_gxx11c.d: CPPFLAGS += $(call incdir,/usr/X11/include /opt/X11/include)

Expand Down
2 changes: 2 additions & 0 deletions libs/DISTlib/CMakeLists.txt
@@ -0,0 +1,2 @@
include(buildtypeCoverage)
add_subdirectory(source)
6 changes: 6 additions & 0 deletions libs/DISTlib/source/CMakeLists.txt
@@ -0,0 +1,6 @@
file(GLOB src_files *.c *.h)

add_library(DISTlib STATIC ${src_files})
if (NOT BUILD_SHARED_LIBS)
install(TARGETS DISTlib ARCHIVE DESTINATION lib)
endif ()

0 comments on commit 13c02dc

Please sign in to comment.