Skip to content
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

Reading data from fluxin can read incomplete data #40

Open
jbae11 opened this issue Jan 25, 2022 · 2 comments
Open

Reading data from fluxin can read incomplete data #40

jbae11 opened this issue Jan 25, 2022 · 2 comments

Comments

@jbae11
Copy link

jbae11 commented Jan 25, 2022

If the fluxin file lacks one float, it can still read it with the last value being zero, or repeated. For example, ALARA will read this file perfectly fine, for a 175-group flux, while it lacks one datapoint, and fill the last value with zero.

2.021090E-12 6.884050E-13 2.234390E-13 4.513660E-13 2.347990E-13 6.158880E-13
4.691870E-13 4.762520E-12 2.437170E-10 5.913580E-09 2.580530E-08 2.726220E-08
1.228420E-08 1.158300E-09 2.110350E-10 7.613250E-10 1.138190E-11 9.011850E-14
4.166120E-13 3.985170E-13 1.540130E-13 1.842240E-15 2.459320E-13 5.509230E-14
2.242050E-14 0.000000E+00 2.180140E-14 1.032170E-12 1.079990E-12 6.614210E-12
1.814240E-11 1.257700E-11 2.399850E-12 5.241690E-13 7.384790E-13 1.314600E-12
1.165080E-12 5.910520E-13 6.486050E-13 3.383140E-13 6.794280E-13 3.588210E-13
1.310730E-13 1.767970E-13 2.182200E-13 9.190240E-14 1.254110E-13 1.292070E-14
1.675300E-16 6.052710E-14 4.511320E-13 8.371490E-13 7.395480E-13 3.752900E-13
4.934440E-13 8.163800E-13 2.082600E-12 1.388370E-12 6.876580E-13 9.422900E-13
1.032220E-12 1.098390E-12 9.670860E-13 4.625230E-13 5.611240E-12 1.622090E-11
1.546470E-09 3.695960E-08 1.208890E-07 1.074500E-07 1.413760E-07 7.020490E-09
1.446440E-09 1.020650E-08 3.273060E-11 9.227850E-12 5.175080E-13 6.533250E-14
5.122670E-14 1.036660E-13 4.059470E-13 1.724070E-13 2.933050E-13 4.197610E-13
1.400030E-12 1.432940E-12 2.041770E-12 1.091520E-11 3.355800E-11 2.184410E-11
2.179340E-12 1.634210E-12 6.205070E-12 8.905370E-12 6.388530E-12 4.008950E-12
1.561140E-12 9.917250E-13 5.798410E-13 6.456720E-13 5.625670E-13 3.971860E-13
1.336700E-13 1.388460E-13 2.375910E-13 1.764260E-13 2.035020E-13 3.429720E-13
1.755470E-12 1.628200E-12 1.311030E-12 2.989220E-13 2.271200E-13 1.672440E-13
4.502400E-13 7.237110E-13 4.037470E-13 4.093850E-13 4.882640E-13 1.645970E-12
2.166250E-12 2.230730E-12 5.586670E-12 6.330820E-11 6.756400E-09 1.260740E-07
1.338990E-07 9.616790E-08 6.448610E-08 4.117270E-09 6.040380E-09 7.339680E-09
9.812620E-12 1.807000E-12 6.617880E-13 4.234240E-13 2.005540E-13 1.247000E-12
1.587920E-12 1.784850E-13 4.043260E-13 1.072730E-12 1.234250E-12 8.028280E-13
2.083160E-13 8.999890E-14 0.000000E+00 0.000000E+00 3.237990E-12 5.915040E-13
2.697620E-12 2.732660E-12 1.655580E-12 2.251800E-13 1.008260E-13 4.490210E-14
1.175390E-13 6.362340E-14 2.236000E-14 1.203520E-14 1.187610E-13 1.016990E-14
6.486700E-15 4.938750E-14 1.718090E-14 2.173310E-14 5.716590E-14 1.378180E-14
1.342740E-14 2.707650E-14 6.602830E-15 1.278480E-14 1.219860E-13 1.223423E-13

After some testing, it seems like moving the eof check to after the reading statement solves this problem.

@gonuke
Copy link
Member

gonuke commented Feb 6, 2022

Is this a feature request to allow ALARA to read files that are short on data? I think one problem may be that if you have multiple locations and they are all short data from one group, then the data will be wrong. The first data from point 2 will be loaded as the last data for point 1, etc...

@jbae11
Copy link
Author

jbae11 commented Mar 28, 2022

sorry for the late reply, I think ALARA should error and say something like the fluxin values are inconsistent with the energy groups. Unless there's a specific reason it's designed this way..?

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

No branches or pull requests

2 participants