-
Notifications
You must be signed in to change notification settings - Fork 2
Improve evaluations, matrix copies and add new features for PDEs and integration #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from 5 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
cec6274
API:
hverhelst 1207f59
ADD:
hverhelst c3cc887
fix BC change
hverhelst 90fc268
update Manifest.toml
hverhelst edfca1c
update package info
hverhelst ff91bff
fix leaks for high Julia versions
hverhelst 53adc1f
Update src/gsCore.jl
hverhelst File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,14 @@ | ||
| name = "Gismo" | ||
| uuid = "f019f137-166b-4455-b646-ee200b009b83" | ||
| authors = ["Hugo Verhelst <[email protected]>"] | ||
| version = "25.1.0" | ||
| version = "25.7.0" | ||
|
|
||
| [deps] | ||
| gismo_jll = "c3015cfb-32aa-504c-ba3d-5541e7ecaf35" | ||
| SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf" | ||
|
|
||
| [compat] | ||
| gismo_jll = "25.1.0" | ||
| gismo_jll = "25.7.0" | ||
| julia = "1.9" | ||
|
|
||
| [extras] | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,25 +1,24 @@ | ||
| using Plots | ||
| using Gismo | ||
| import Gismo.size | ||
|
|
||
| KV = KnotVector([0.,0.,0.,1.,1.,1.]) | ||
| BB = BSplineBasis(KV) | ||
| BB = KnotVector([0.,0.,0.,1.,1.,1.]) |> BSplineBasis | ||
| uniformRefine!(BB) | ||
| uniformRefine!(BB) | ||
|
|
||
| # Create a matrix of random coefficients | ||
| coefs = rand(size(BB),2) | ||
| CC = rand(size(BB),2) | ||
| # Create a BSpline geometry | ||
| B = BSpline(BB,coefs) | ||
| B = BSpline(BB,CC) | ||
|
|
||
| # Create a matrix of linearly spaced evaluation points | ||
| points1D = zeros(1,100) | ||
| points1D[1,:] = range(0,stop=1,length=100) | ||
| ev = asMatrix(val(B,points1D)) | ||
| points1D = zeros(1,3) | ||
| points1D[1,:] = range(0,stop=1,length=3) | ||
| evMat = val(B,points1D) # this is a C++ pointer | ||
| ev = asMatrix(evMat) # convert to a Julia matrix (not owning the data) | ||
|
|
||
| # Plot the geometry | ||
| plot(ev[1,:],ev[2,:],legend=false) | ||
| plot!(coefs[:,1],coefs[:,2],legend=false) | ||
| plot!(coefs[:,1],coefs[:,2],legend=false,seriestype=:scatter) | ||
| plot!(CC[:,1],CC[:,2],legend=false) | ||
| plot!(CC[:,1],CC[:,2],legend=false,seriestype=:scatter) | ||
| gui() | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.