Coder Social home page Coder Social logo

ptsolvers / gpu4geo Goto Github PK

View Code? Open in Web Editor NEW
10.0 3.0 7.0 25.6 MB

Frontier GPU multi-physics solvers

Home Page: https://ptsolvers.github.io/GPU4GEO/

License: MIT License

HTML 13.26% JavaScript 82.21% Julia 3.28% CSS 1.25%
gpu earth-science julia-language supercomputing

gpu4geo's Introduction

gpu4geo's People

Contributors

albert-de-montserrat avatar arnespang avatar boriskaus avatar jamisonassuncao avatar luraess avatar ranocha avatar tlienart avatar utkinis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

gpu4geo's Issues

Banner adjustments and text adjustments

A banner can be fairly annoying to handle at all sorts of geometry, here's 840x400 for instance
Screenshot 2022-02-21 at 10 57 53

--> unreadable

What you could do:

  1. have all sorts of media rules to swap the colour of the text when you know there's overlap (this is the most painful route to do well)
  2. add another div behind main which has a grey-ish colour background throughout (i.e. the whole page is a bit dark) and use light text for GPU4GEO and nav (this is what I'd recommend)
  3. wash out the banner by reducing the opacity (you can also do this manually) so that dark text is fine even when it's over the image.

Posts title do not refresh

In the current version, post title do not refresh (locally) unless one removes and adds back the post within the posts folder.

Modifying news posts or changing tag list breaks Xranklin

@tlienart Modifying any news .md file (adding/deleting a post [file]) in the Coder theme breaks Xranklin up to a point that the only workaround is currently to re-clone the repo. Executing

using Xranklin
serve(clear=true)

works in the current config (aka with the files from GitHub). However, removing any post (or news) .md file in the posts folder generates the following error, which remains independently of adding back more post files:

julia> serve(clear=true)
[ Info: ⌛ processing config.md
[ Info: ... [config.md] ✔ (δt = 6ms)
  Activating project at `~/Documents/git/github_PTsolvers/GPU4GEO`
[ Info: ⌛ processing utils.jl
[ Info:   ⏯️  evaluating cell utils...
[ Info: ... [utils.jl] ✔ (δt = 87ms)

[ Info: 💡 starting the full pass

[ Info: ⌛ processing project.md
[ Info: ... [process] ✔ (δt = 0.1s), wrote __site/project/index.html
[ Info: ⌛ processing publications.md
[ Info: ... [process] ✔ (δt = 70ms), wrote __site/publications/index.html
[ Info: ⌛ processing software.md
[ Info: ... [process] ✔ (δt = 74ms), wrote __site/software/index.html
[ Info: ⌛ processing team.md
[ Info: ... [process] ✔ (δt = 88ms), wrote __site/team/index.html
[ Info: ⌛ processing posts/emoji-support.md
[ Info:   ⏯️  evaluating cell auto_cell_1...
ERROR: FranklinParser.FranklinParserException(:BlockNotClosed, "An opening token 'CODE_SINGLE' was found but not closed.\n")
Stacktrace:
  [1] parser_exception
    @ ~/.julia/packages/FranklinParser/nnfSV/src/utils/errors.jl:6 [inlined]
  [2] _find_blocks!(blocks::Vector{FranklinParser.Block}, tokens::SubArray{FranklinParser.Token, 1, Vector{FranklinParser.Token}, Tuple{UnitRange{Int64}}, true}, templates::OrderedCollections.LittleDict{Symbol, FranklinParser.BlockTemplate, Vector{Symbol}, Vector{FranklinParser.BlockTemplate}}, is_active::Vector{Bool}; process_linereturn::Bool)
    @ FranklinParser ~/.julia/packages/FranklinParser/nnfSV/src/blocks/find_blocks.jl:148
  [3] find_blocks(tokens::SubArray{FranklinParser.Token, 1, Vector{FranklinParser.Token}, Tuple{UnitRange{Int64}}, true}; is_md::Bool)
    @ FranklinParser ~/.julia/packages/FranklinParser/nnfSV/src/blocks/find_blocks.jl:28
  [4] (::FranklinParser.var"#66#67")(t::Vector{FranklinParser.Token})
    @ FranklinParser ~/.julia/packages/FranklinParser/nnfSV/src/partition.jl:108
  [5] partition(s::SubString{String}, tokenizer::FranklinParser.var"#64#65"{OrderedCollections.LittleDict{Char, Vector{Pair{FranklinParser.TokenFinder, Symbol}}, Vector{Char}, Vector{Vector{Pair{FranklinParser.TokenFinder, Symbol}}}}}, blockifier::FranklinParser.var"#66#67"; tokens::SubArray{FranklinParser.Token, 1, Vector{FranklinParser.Token}, Tuple{UnitRange{Int64}}, true}, disable::Vector{Symbol}, postproc::typeof(FranklinParser.default_md_postproc!))
    @ FranklinParser ~/.julia/packages/FranklinParser/nnfSV/src/partition.jl:40
  [6] #md_partition#70
    @ ~/.julia/packages/FranklinParser/nnfSV/src/partition.jl:111 [inlined]
  [7] md_partition
    @ ~/.julia/packages/FranklinParser/nnfSV/src/partition.jl:111 [inlined]
  [8] convert_md(md::SubString{String}, c::Xranklin.LocalContext; tohtml::Bool, nop::Bool, kw::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ Xranklin ~/.julia/packages/Xranklin/0rQQN/src/convert/markdown/md_core.jl:62
  [9] convert_md(md::SubString{String}, c::Xranklin.LocalContext)
    @ Xranklin ~/.julia/packages/Xranklin/0rQQN/src/convert/markdown/md_core.jl:51
 [10] html(md::SubString{String}, c::Xranklin.LocalContext; kw::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ Xranklin ~/.julia/packages/Xranklin/0rQQN/src/convert/markdown/md_core.jl:126
 [11] html
    @ ~/.julia/packages/Xranklin/0rQQN/src/convert/markdown/md_core.jl:126 [inlined]
 [12] #html#112
    @ ~/.julia/packages/Xranklin/0rQQN/src/convert/markdown/md_core.jl:130 [inlined]
 [13] html
    @ ~/.julia/packages/Xranklin/0rQQN/src/convert/markdown/md_core.jl:130 [inlined]
 [14] _process_md_file_html(lc::Xranklin.LocalContext, page_content_md::String; skip::Bool)
    @ Xranklin ~/.julia/packages/Xranklin/0rQQN/src/process/md.jl:411
 [15] process_md_file_io!(io::IOBuffer, gc::Xranklin.GlobalContext{Xranklin.LocalContext}, fpath::String; opath::String, initial_pass::Bool, tohtml::Bool)
    @ Xranklin ~/.julia/packages/Xranklin/0rQQN/src/process/md.jl:331
 [16] process_md_file(gc::Xranklin.GlobalContext{Xranklin.LocalContext}, fpath::String, opath::String; initial_pass::Bool, kw::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ Xranklin ~/.julia/packages/Xranklin/0rQQN/src/process/md.jl:60
 [17] process_md_file(gc::Xranklin.GlobalContext{Xranklin.LocalContext}, rpath::String; kw::Base.Pairs{Symbol, Bool, Tuple{Symbol}, NamedTuple{(:initial_pass,), Tuple{Bool}}})
    @ Xranklin ~/.julia/packages/Xranklin/0rQQN/src/process/md.jl:27
 [18] getvarfrom(n::Symbol, rpath::String, d::Nothing)
    @ Xranklin ~/.julia/packages/Xranklin/0rQQN/src/context/context.jl:395
 [19] getvarfrom
    @ ~/.julia/packages/Xranklin/0rQQN/src/context/context.jl:387 [inlined]
 [20] (::Main.__FRANKLIN_1405648.var"#6#10")(rp::String)
    @ Main.__FRANKLIN_1405648 ./none:0
 [21] iterate
    @ ./generator.jl:47 [inlined]
 [22] collect(itr::Base.Generator{Vector{String}, Main.__FRANKLIN_1405648.var"#6#10"})
    @ Base ./array.jl:724
 [23] get_posts(t::String)
    @ Main.__FRANKLIN_1405648 ./string:67
 [24] hfun_list_posts(t::String)
    @ Main.__FRANKLIN_1405648 ./string:50
 [25] hfun_taglist()
    @ Main.__FRANKLIN_1405648 ./string:37
 [26] #invokelatest#2
    @ ./essentials.jl:716 [inlined]
 [27] invokelatest
    @ ./essentials.jl:714 [inlined]
 [28] outputof(f::Function, args::Vector{String}; tohtml::Bool)
    @ Xranklin ~/.julia/packages/Xranklin/0rQQN/src/convert/postprocess/utils.jl:7
 [29] html2(parts::Vector{FranklinParser.Block}, c::Xranklin.LocalContext)
    @ Xranklin ~/.julia/packages/Xranklin/0rQQN/src/convert/postprocess/html2.jl:137
 [30] html2(s::String, c::Xranklin.LocalContext; kw::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ Xranklin ~/.julia/packages/Xranklin/0rQQN/src/convert/postprocess/html2.jl:17
 [31] html2
    @ ~/.julia/packages/Xranklin/0rQQN/src/convert/postprocess/html2.jl:17 [inlined]
 [32] (::Xranklin.var"#27#28"{Xranklin.LocalContext})(f::IOStream)
    @ Xranklin ~/.julia/packages/Xranklin/0rQQN/src/context/tags.jl:124
 [33] open(::Xranklin.var"#27#28"{Xranklin.LocalContext}, ::String, ::Vararg{String}; kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ Base ./io.jl:330
 [34] open
    @ ./io.jl:328 [inlined]
 [35] write_tag_page(gc::Xranklin.GlobalContext{Xranklin.LocalContext}, id::String)
    @ Xranklin ~/.julia/packages/Xranklin/0rQQN/src/context/tags.jl:123
 [36] add_tag(gc::Xranklin.GlobalContext{Xranklin.LocalContext}, id::String, name::String, rpath::String)
    @ Xranklin ~/.julia/packages/Xranklin/0rQQN/src/context/tags.jl:41
 [37] process_md_file_io!(io::IOBuffer, gc::Xranklin.GlobalContext{Xranklin.LocalContext}, fpath::String; opath::String, initial_pass::Bool, tohtml::Bool)
    @ Xranklin ~/.julia/packages/Xranklin/0rQQN/src/process/md.jl:379
 [38] process_md_file(gc::Xranklin.GlobalContext{Xranklin.LocalContext}, fpath::String, opath::String; initial_pass::Bool, kw::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ Xranklin ~/.julia/packages/Xranklin/0rQQN/src/process/md.jl:60
 [39] process_file(gc::Xranklin.GlobalContext{Xranklin.LocalContext}, fpair::Pair{String, String}, case::Symbol, t::Float64; skip_files::Vector{Pair{String, String}}, initial_pass::Bool, final::Bool, reproc::Bool)
    @ Xranklin ~/.julia/packages/Xranklin/0rQQN/src/process/process.jl:68
 [40] full_pass(gc::Xranklin.GlobalContext{Xranklin.LocalContext}, watched_files::OrderedCollections.LittleDict{Symbol, OrderedCollections.LittleDict{Pair{String, String}, Float64}, Vector{Symbol}, Vector{OrderedCollections.LittleDict{Pair{String, String}, Float64}}}; skip_files::Vector{Pair{String, String}}, layout_changed::Bool, config_changed::Bool, utils_changed::Bool, final::Bool)
    @ Xranklin ~/.julia/packages/Xranklin/0rQQN/src/build/full_pass.jl:104
 [41] serve(d::String; dir::String, folder::String, clear::Bool, final::Bool, single::Bool, prepath::String, prefix::String, base_url_prefix::String, debug::Bool, cleanup::Bool, port::Int64, host::String, launch::Bool)
    @ Xranklin ~/.julia/packages/Xranklin/0rQQN/src/build/serve.jl:118
 [42] top-level scope
    @ REPL[2]:1

Julia>

Nothing helps to restaure the working behaviour after the first error occurred, the only workaround is to re-clone the repo from GitHub. Any hints on what is going wrong?

Remove the Content-security-Policy

remove that

<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests; block-all-mixed-content; default-src 'self'; child-src 'self'; font-src 'self' https://fonts.gstatic.com https://cdn.jsdelivr.net/; form-action 'self'; frame-src 'self'; img-src 'self'; object-src 'none'; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com/ https://cdn.jsdelivr.net/; script-src 'self' 'unsafe-inline' https://www.google-analytics.com https://cdn.jsdelivr.net/; prefetch-src 'self'; connect-src 'self' https://www.google-analytics.com;">

that's what causes Safari to block

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.