IAP GITLAB
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
corsika
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Antonio Augusto Alves Junior
corsika
Commits
4fbecb2a
Commit
4fbecb2a
authored
6 years ago
by
Maximilian Reininghaus
Browse files
Options
Downloads
Patches
Plain Diff
maxStepLength as parameter for NullModel
parent
7ef1ee01
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+1
-1
1 addition, 1 deletion
CMakeLists.txt
Framework/Cascade/Cascade.h
+2
-1
2 additions, 1 deletion
Framework/Cascade/Cascade.h
Processes/NullModel/NullModel.h
+3
-3
3 additions, 3 deletions
Processes/NullModel/NullModel.h
with
6 additions
and
5 deletions
CMakeLists.txt
+
1
−
1
View file @
4fbecb2a
...
@@ -39,7 +39,7 @@ endif()
...
@@ -39,7 +39,7 @@ endif()
# enable warnings and disallow non-standard language
# enable warnings and disallow non-standard language
set
(
CMAKE_CXX_FLAGS
"-Wall -pedantic -Wextra -Wno-ignored-qualifiers"
)
set
(
CMAKE_CXX_FLAGS
"-Wall -pedantic -Wextra -Wno-ignored-qualifiers"
)
set
(
CMAKE_CXX_FLAGS_DEBUG
"-O0 -g"
)
set
(
CMAKE_CXX_FLAGS_DEBUG
"-O0 -g"
)
set
(
CMAKE_CXX_FLAGS_RELEASE
"-O3"
)
set
(
CMAKE_CXX_FLAGS_RELEASE
"-O3
-g
"
)
# clang produces a lot of unecessary warnings without this:
# clang produces a lot of unecessary warnings without this:
add_compile_options
(
"$<$<CXX_COMPILER_ID:Clang>:-Wno-nonportable-include-path>"
)
add_compile_options
(
"$<$<CXX_COMPILER_ID:Clang>:-Wno-nonportable-include-path>"
)
...
...
This diff is collapsed.
Click to expand it.
Framework/Cascade/Cascade.h
+
2
−
1
View file @
4fbecb2a
...
@@ -47,7 +47,8 @@ namespace corsika::cascade {
...
@@ -47,7 +47,8 @@ namespace corsika::cascade {
void
Run
()
{
void
Run
()
{
while
(
!
fStack
.
IsEmpty
())
{
while
(
!
fStack
.
IsEmpty
())
{
while
(
!
fStack
.
IsEmpty
())
{
while
(
!
fStack
.
IsEmpty
())
{
Particle
&
pNext
=
*
fStack
.
GetNextParticle
();
auto
pNext
=
fStack
.
GetNextParticle
();
//std::cout << pNext
Step
(
pNext
);
Step
(
pNext
);
}
}
// do cascade equations, which can put new particles on Stack,
// do cascade equations, which can put new particles on Stack,
...
...
This diff is collapsed.
Click to expand it.
Processes/NullModel/NullModel.h
+
3
−
3
View file @
4fbecb2a
...
@@ -17,11 +17,11 @@
...
@@ -17,11 +17,11 @@
namespace
corsika
::
process
::
null_model
{
namespace
corsika
::
process
::
null_model
{
class
NullModel
:
public
corsika
::
process
::
ContinuousProcess
<
NullModel
>
{
class
NullModel
:
public
corsika
::
process
::
ContinuousProcess
<
NullModel
>
{
corsika
::
units
::
si
::
LengthType
fMaxStepLength
{
corsika
::
units
::
si
::
LengthType
const
fMaxStepLength
;
corsika
::
units
::
si
::
meter
*
std
::
numeric_limits
<
double
>::
infinity
()};
public:
public:
NullModel
(
corsika
::
units
::
si
::
LengthType
maxStepLength
)
NullModel
(
corsika
::
units
::
si
::
LengthType
maxStepLength
=
corsika
::
units
::
si
::
meter
*
std
::
numeric_limits
<
double
>::
infinity
())
:
fMaxStepLength
(
maxStepLength
)
{}
:
fMaxStepLength
(
maxStepLength
)
{}
void
Init
();
void
Init
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment