diff options
author | Stephen Montgomery-Smith <stephen@FreeBSD.org> | 2021-02-21 22:41:34 +0000 |
---|---|---|
committer | Stephen Montgomery-Smith <stephen@FreeBSD.org> | 2021-02-21 22:41:34 +0000 |
commit | 6473aac25b6dc63be299faa4fc1ed9cde77f1957 (patch) | |
tree | 5f81e978342b34ec7b1784c80dc5be7182d55dcf /math/octave-forge-nlwing2/files/patch-biotsavart.cc | |
parent | - Fix pkg-plist (diff) |
- Update math/octave to 6.2.0.
- Bump portrevision of dependent ports.
- Add patches to dependent ports math/octave-forge-* if I can figure them out.
- Mark broken dependent ports I couldn't figure out.
Notes
Notes:
svn path=/head/; revision=566249
Diffstat (limited to 'math/octave-forge-nlwing2/files/patch-biotsavart.cc')
-rw-r--r-- | math/octave-forge-nlwing2/files/patch-biotsavart.cc | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/math/octave-forge-nlwing2/files/patch-biotsavart.cc b/math/octave-forge-nlwing2/files/patch-biotsavart.cc new file mode 100644 index 000000000000..ded264e242a6 --- /dev/null +++ b/math/octave-forge-nlwing2/files/patch-biotsavart.cc @@ -0,0 +1,20 @@ +--- biotsavart.cc.orig 2021-02-21 21:52:50 UTC ++++ biotsavart.cc +@@ -128,7 +128,7 @@ by a vortex segment joining @code{@var{x}(j,1:3)} and + Matrix X = args(1).matrix_value (); + RowVector dir = args(2).row_vector_value (); + if (CP.cols () == 3 +- && X.cols () == 3 && dir.length () == 3) ++ && X.cols () == 3 && dir.numel () == 3) + { + octave_idx_type m = CP.rows (), n = X.rows (); + NDArray vi (dim_vector (m, n, 3)); +@@ -148,7 +148,7 @@ by a vortex segment joining @code{@var{x}(j,1:3)} and + Matrix X = args(2).matrix_value (); + RowVector dir = args(3).row_vector_value (); + if (CP.cols () == 3 && CN.cols () == 3 && CP.rows () == CN.rows () +- && X.cols () == 3 && dir.length () == 3) ++ && X.cols () == 3 && dir.numel () == 3) + { + octave_idx_type m = CP.rows (), n = X.rows (); + Matrix vn (m, n); |