Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Distribution + energy update (first step) + RF-fringe #902

Merged
merged 24 commits into from Jun 8, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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 ()