Skip to content

Commit

Permalink
first translation from f to c
Browse files Browse the repository at this point in the history
Initial file created with f2c (https://www.netlib.org/f2c/).
Modified to be standalone (without f2c.h)
  • Loading branch information
j042 committed Apr 30, 2024
1 parent bddc820 commit 0e6f28d
Show file tree
Hide file tree
Showing 4 changed files with 3,501 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ repos:
rev: v18.1.3
hooks:
- id: clang-format
types_or: [c++]
types_or: [c, c++]

- repo: https://github.com/cheshirekow/cmake-format-precommit
rev: "v0.6.13"
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.12.0)
project(
splinepy
VERSION 0.0.2
LANGUAGES CXX Fortran)
LANGUAGES C CXX)

# build options
option(SPLINEPY_COMPILE_BSPLINELIB "Compile bsplinelib together." ON)
Expand Down
4 changes: 2 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ set(SPLINEPY_MORE_SRCS
${PROJECT_SOURCE_DIR}/src/splines/create/rational_bezier9.cpp
${PROJECT_SOURCE_DIR}/src/splines/create/rational_bezier10.cpp)

set(SPLINEPY_SLSQP_SRCS ${PROJECT_SOURCE_DIR}/src/proximity/slsqp/slsqp.f)
set(SPLINEPY_SLSQP_SRCS ${PROJECT_SOURCE_DIR}/src/proximity/slsqp/slsqp.c)

# extend src for high dim splines
if(SPLINEPY_MORE)
Expand All @@ -36,7 +36,7 @@ endif(SPLINEPY_MORE)

add_library(slsqp ${SPLINEPY_SLSQP_SRCS})
add_library(splinepy::slsqp ALIAS slsqp)
target_compile_options(slsqp PRIVATE -std=legacy -O3 -fPIC)
target_compile_options(slsqp PRIVATE -O3 -fPIC)

# target
add_library(splinepy ${SPLINEPY_LIB_TYPE} ${SPLINEPY_SRCS})
Expand Down
Loading

0 comments on commit 0e6f28d

Please sign in to comment.