llnl / topoms Goto Github PK
View Code? Open in Web Editor NEWTopological Analysis for Molecular Systems
Topological Analysis for Molecular Systems
Tried using FIELDTYPE = OTHER with current master, got:
Config::parse() - Invalid Fieldtype (OTHER). Expected CHG or POT. Aborting!
In file included from /usr/ports/science/topoms/work/TopoMS-1.1/topoms/src/TopoMS-vtk.cpp:78:
/usr/ports/science/topoms/work/TopoMS-1.1/topoms/include/TopoMS.h:295:25: error: non-constant-expression cannot be narrowed from type 'unsigned long' to 'float' in initializer list [-Wc++11-narrowing]
float cut[3] = {m_metadata.m_grid_dims[0], m_metadata.m_grid_dims[1], m_metadata.m_grid_dims[2]};
^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/ports/science/topoms/work/TopoMS-1.1/topoms/include/TopoMS.h:295:25: note: insert an explicit cast to silence this issue
float cut[3] = {m_metadata.m_grid_dims[0], m_metadata.m_grid_dims[1], m_metadata.m_grid_dims[2]};
^~~~~~~~~~~~~~~~~~~~~~~~~
static_cast<float>( )
/usr/ports/science/topoms/work/TopoMS-1.1/topoms/include/TopoMS.h:295:52: error: non-constant-expression cannot be narrowed from type 'unsigned long' to 'float' in initializer list [-Wc++11-narrowing]
float cut[3] = {m_metadata.m_grid_dims[0], m_metadata.m_grid_dims[1], m_metadata.m_grid_dims[2]};
^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/ports/science/topoms/work/TopoMS-1.1/topoms/include/TopoMS.h:295:52: note: insert an explicit cast to silence this issue
float cut[3] = {m_metadata.m_grid_dims[0], m_metadata.m_grid_dims[1], m_metadata.m_grid_dims[2]};
^~~~~~~~~~~~~~~~~~~~~~~~~
static_cast<float>( )
/usr/ports/science/topoms/work/TopoMS-1.1/topoms/include/TopoMS.h:295:79: error: non-constant-expression cannot be narrowed from type 'unsigned long' to 'float' in initializer list [-Wc++11-narrowing]
float cut[3] = {m_metadata.m_grid_dims[0], m_metadata.m_grid_dims[1], m_metadata.m_grid_dims[2]};
^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/ports/science/topoms/work/TopoMS-1.1/topoms/include/TopoMS.h:295:79: note: insert an explicit cast to silence this issue
float cut[3] = {m_metadata.m_grid_dims[0], m_metadata.m_grid_dims[1], m_metadata.m_grid_dims[2]};
^~~~~~~~~~~~~~~~~~~~~~~~~
static_cast<float>( )
3 errors generated.
[6/10] /usr/local/bin/clang++70 -I/usr/ports/science/topoms/work/TopoMS-1.1/msc/include -I/usr/ports/science/topoms/work/TopoMS-1.1/topoms/include -std=c++0x -fpermissive -w -fopenmp=libomp -O2 -pipe -fno-omit-frame-pointer -fstack-protector -fno-strict-aliasing -fno-omit-frame-pointer -MD -MT topoms-cli/CMakeFiles/topoms-cli.dir/src/main.cpp.o -MF topoms-cli/CMakeFiles/topoms-cli.dir/src/main.cpp.o.d -o topoms-cli/CMakeFiles/topoms-cli.dir/src/main.cpp.o -c /usr/ports/science/topoms/work/TopoMS-1.1/topoms-cli/src/main.cpp
Made a new CMakeLists.txt. This evolved over many many iterations and probably has quite a few unnecessary parts.
====
cmake_minimum_required(VERSION 3.9)
message(STATUS "> configuring TopoMS in (" ${CMAKE_CURRENT_SOURCE_DIR} ")")
project(TopoMS LANGUAGES CXX VERSION 1.1 DESCRIPTION "TopoMS")
set(CMAKE_BUILD_TYPE Release)
#set(CMAKE_VERBOSE_MAKEFILE 1)
#if(NOT CMAKE_COMPILER_IS_GNUCXX)
#endif()
set(CMAKE_CXX_FLAGS "-O3 -I/usr/include/GL/ ") ## Optimize
set(CMAKE_CXX_FLAGS "-std=c++0x -fpermissive -w ")
set(CMAKE_SHARED_LINKER_FLAGS "-s -lstdc++ -lGL -lQt5Xml -lQt5Designer") ## Strip binary
#set(CMAKE_SHARED_LINKER_FLAGS "-s -lc++ ") ## Strip binary
set(CMAKE_EXE_LINKER_FLAGS "-s -lstdc++ -lGL -lQt5Xml -lQt5Designer") ## Strip binary
#set(CMAKE_EXE_LINKER_FLAGS "-s -lc++ ") ## Strip binary
#-lc++ for Apple
set(PATH_EXT ${CMAKE_CURRENT_SOURCE_DIR}/external)
set(PATH_MSC ${CMAKE_CURRENT_SOURCE_DIR}/msc)
set(PATH_TOPOMS ${CMAKE_CURRENT_SOURCE_DIR}/topoms)
set(PATH_CLI ${CMAKE_CURRENT_SOURCE_DIR}/topoms-cli)
set(PATH_UI ${CMAKE_CURRENT_SOURCE_DIR}/topoms-ui)
#message(STATUS " > PATH_MSC: " ${PATH_MSC})
#message(STATUS " > PATH_TOPOMS: " ${PATH_TOPOMS})
#message(STATUS " > PATH_CLI: " ${PATH_CLI})
#message(STATUS " > PATH_UI: " ${PATH_UI})
set(TRG_LIB topoms)
set(TRG_CLI topoms-cli)
set(TRG_UI topoms-ui)
#find_package(OpenMP REQUIRED)
#message(STATUS "OpenMP_CXX_FLAGS: " ${OpenMP_CXX_FLAGS})
#message(STATUS "OpenMP_EXE_LINKER_FLAGS: " ${OpenMP_EXE_LINKER_FLAGS})
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS} -fopenmp -DGL_GLEXT_PROTOTYPES -DUSE_GLEW -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/GL/ ")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${OpenMP_EXE_LINKER_FLAGS} -lgomp -lGL -lQt5OpenGL -lGLEW -lQt5Xml -lQt5Core -lQt5Designer ")
find_package(VTK 7.1
HINTS ${PATH_EXT}/lib/cmake/vtk-7.1)
if(VTK_FOUND)
message(STATUS "Found VTK " ${VTK_VERSION} ": " ${VTK_INCLUDE_DIRS})
include(${VTK_USE_FILE})
add_definitions(-DUSE_VTK=TRUE)
endif(VTK_FOUND)
add_subdirectory(topoms)
add_subdirectory(topoms-cli)
OPTION(TOPOMS_BUILD_UI "Build User Interface" OFF)
if(TOPOMS_BUILD_UI)
add_subdirectory(topoms-ui)
endif()
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.