Skip to content

Commit

Permalink
Apply Mark's suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
robertodr committed Feb 10, 2021
1 parent e786abd commit e47ac9b
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ FortranCInterface_VERIFY(CXX)

FortranCInterface_HEADER(
fc_mangle.h
MACRO_NAMESPACE "FC_"
SYMBOLS DSCAL DGESV
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ void C_DSCAL(size_t length, double alpha, double *vec, int inc) {
for (int block = 0; block <= big_blocks; block++) {
double *vec_s = &vec[block * inc * (size_t)INT_MAX];
signed int length_s = (block == big_blocks) ? small_size : INT_MAX;
::DSCAL(&length_s, &alpha, vec_s, &inc);
DSCAL(&length_s, &alpha, vec_s, &inc);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
// see http://www.netlib.no/netlib/lapack/double/dgesv.f
int C_DGESV(int n, int nrhs, double *a, int lda, int *ipiv, double *b, int ldb) {
int info;
::DGESV(&n, &nrhs, a, &lda, ipiv, b, &ldb, &info);
DGESV(&n, &nrhs, a, &lda, ipiv, b, &ldb, &info);
return info;
}
1 change: 0 additions & 1 deletion content/code/day-2/25_cxx-fortran/src/math/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ include(...)
# FIXME generate Fortran name mangling header
FortranCInterface_HEADER(
...
MACRO_NAMESPACE ...
SYMBOLS ...
)

Expand Down

0 comments on commit e47ac9b

Please sign in to comment.