Geant4
11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
ptwX_misc.c
Go to the documentation of this file.
1
/*
2
# <<BEGIN-copyright>>
3
# Copyright 2019, Lawrence Livermore National Security, LLC.
4
# This file is part of the gidiplus package (https://github.com/LLNL/gidiplus).
5
# gidiplus is licensed under the MIT license (see https://opensource.org/licenses/MIT).
6
# SPDX-License-Identifier: MIT
7
# <<END-copyright>>
8
*/
9
10
#include <stdio.h>
11
#include <stdlib.h>
12
13
#include "
ptwX.h
"
14
15
/*
16
************************************************************
17
*/
18
nfu_status
ptwX_simpleWrite
(
statusMessageReporting
*smr,
ptwXPoints
const
*ptwX, FILE *f,
char
const
*format ) {
19
20
int64_t i1;
21
double
*p1 = ptwX->
points
;
22
23
for
( i1 = 0; i1 < ptwX->
length
; ++i1, ++p1 ) fprintf( f, format, *p1 );
24
return
(
nfu_Okay
);
25
}
26
/*
27
************************************************************
28
*/
29
nfu_status
ptwX_simplePrint
(
statusMessageReporting
*smr,
ptwXPoints
const
*ptwX,
char
const
*format ) {
30
31
return
(
ptwX_simpleWrite
( smr, ptwX, stdout, format ) );
32
}
nfu_Okay
@ nfu_Okay
Definition
nf_utilities.h:39
nfu_status
enum nfu_status_e nfu_status
ptwX.h
ptwXPoints
struct ptwXPoints_s ptwXPoints
ptwX_simpleWrite
nfu_status ptwX_simpleWrite(statusMessageReporting *smr, ptwXPoints const *ptwX, FILE *f, char const *format)
Definition
ptwX_misc.c:18
ptwX_simplePrint
nfu_status ptwX_simplePrint(statusMessageReporting *smr, ptwXPoints const *ptwX, char const *format)
Definition
ptwX_misc.c:29
ptwXPoints_s::length
int64_t length
Definition
ptwX.h:29
ptwXPoints_s::points
double * points
Definition
ptwX.h:32
statusMessageReporting
Definition
statusMessageReporting.h:48
geant4-v11.4.0
source
processes
hadronic
models
lend
src
ptwX_misc.c
Generated by
1.16.1