Skip to content

Conversation

@sloede
Copy link
Member

@sloede sloede commented Jul 7, 2023

Before, one always had to start programs with JULIA_DEPOT_PATH=path myprog when running a program myprog that links to libtrixi. With this PR, setting JULIA_DEPOT_PATH becomes unnecessary as long as the default depot location used by by utils/libtrixi-init-julia is left untouched.

This should help to avoid user errors in case they forget to set the Julia depot path appropriately. If a JULIA_DEPOT_PATH environment variable is set, it will honored, thus the user can still provide non-standard locations via the environment. Overriding the default is also possible by calling trixi_initialize with a second, non-null argument.

@sloede sloede requested a review from benegee July 7, 2023 10:46
@sloede
Copy link
Member Author

sloede commented Jul 7, 2023

@KerstinHartung This should also make it easier for MESSy users, since one cannot forget to set the depot path anymore if one sticks to the default values...

benegee
benegee previously approved these changes Jul 7, 2023
Copy link
Collaborator

@benegee benegee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This a fantastic idea! I will definitely make using libtrixi more easy!

@codecov
Copy link

codecov bot commented Jul 7, 2023

Codecov Report

Merging #50 (8bd28b3) into main (a30fa0e) will decrease coverage by 4.32%.
The diff coverage is 57.50%.

@@            Coverage Diff             @@
##             main      #50      +/-   ##
==========================================
- Coverage   74.43%   70.12%   -4.32%     
==========================================
  Files           4        5       +1     
  Lines         133      164      +31     
==========================================
+ Hits           99      115      +16     
- Misses         34       49      +15     
Flag Coverage Δ
unittests 70.12% <57.50%> (-4.32%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/trixi.c 65.88% <38.09%> (-8.04%) ⬇️
src/trixi.f90 71.42% <71.42%> (ø)
examples/simple_trixi_controller.c 84.61% <100.00%> (ø)
examples/simple_trixi_controller.f90 60.00% <100.00%> (+1.66%) ⬆️

@sloede sloede merged commit e34e85e into main Jul 7, 2023
@sloede sloede deleted the msl/simplify-usage-by-omitting-depot-path branch July 7, 2023 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants