Comments (10)
You are right, the component imform%scu_data needs to be initialized on the fortran side, so I have now set default values in the definition of the tyep. Of course, there is no need for the scu c-side routines at the moment, these are simply placeholders in case someone ever writes the compete c interface (same for all of these subsidary routines), only the control/inform values are needed (if available).
Will push when I next get a chance
from galahad.
scu doesn't have an initialize routine as the
fortran package doesn't have a control type.
Thus there is nothing to initialize.
At present I have not added full C interfaces to
many of the subsidiary routines, but just the
control/inform structures (that are used by cascade
in other packages).
from galahad.
How do you initialize the data
parameter of scu_information
and scu_terminate
?
from galahad.
@nimgould Can I close this issue?
from galahad.
Yes, thanks
from galahad.
I don't see the routine scu_initialize
in the header file:
https://github.com/ralna/GALAHAD/blob/master/include/galahad_scu.h
from galahad.
As I said, it is not needed, scu has no control type parameters to set.
from galahad.
You are right, the component imform%scu_data needs to be initialized on the fortran side, so I have now set default values in the definition of the tyep. Of course, there is no need for the scu c-side routines at the moment, these are simply placeholders in case someone ever writes the compete c interface (same for all of these subsidary routines), only the control/inform values are needed (if available).
Will push when I next get a chance
👆👆👆
You still need to initialize the data
parameter that is created in Julia or C.
from galahad.
Presumably, this can be done on the C side?
from galahad.
I can't do it directly in Julia.
This is my test for SCU
in Julia:
# test_scu.jl
# Simple code to test the Julia interface to SCU
using GALAHAD
using Test
function test_scu()
data = Ref{Ptr{Cvoid}}()
control = Ref{scu_control_type}()
inform = Ref{scu_inform_type}()
status = Ref{Cint}()
scu_initialize(data, control, status)
scu_information(data, inform, status)
scu_terminate(data, control, inform)
return 0
end
@testset "SCU" begin
@test test_scu() == 0
end
Because the C function scu_initialize
is missing, I can run the test.
from galahad.
Related Issues (20)
- Test the Julia interface GALAHAD.jl with CI
- Test GALAHAD with HSL subset
- ILP64 BLAS and LAPACK librairies of NVIDIA don't have the suffix _64 HOT 1
- all builds now fail as blas/lapack are now modern (.f90) rather than traditional (*.f)
- [documentation] Explain how we can compile static libraries with Meson
- Improve tests for SLLS
- Register GALAHAD.jl HOT 1
- Compile GALAHAD_jll.jl with HSL_jll.jl HOT 1
- GALAHAD is unable to use PASTIX / SPM HOT 3
- Name of the libraries when GALAHAD is compiled with 64-bit integer HOT 3
- TagBot trigger issue HOT 2
- [CI] Install C Regex Library on Windows HOT 4
- [CI] Check modules failing HOT 11
- [CI] Cirrus CI Julia install fails
- MKL-Pardiso with 64-bit integer
- Clong has been replaced by int64_t in the HSL headers HOT 23
- added gkregex for Windows issue HOT 19
- Python solve routines should allow keyword arguments HOT 9
- [C Interface] Garbled NLS subproblem_inform HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from galahad.