-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from pyne/develop
Update from pnye/develop
- Loading branch information
Showing
14 changed files
with
189 additions
and
165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Macros for downloading a tar file and extracting it if a sample file | ||
# doesn't already exist. | ||
|
||
macro(download_and_extract _url _checkfile) | ||
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${_checkfile}") | ||
# don't need to do anything | ||
message(STATUS "${_checkfile} exists, no need to download or extract!") | ||
else() | ||
get_filename_component(_base "${_url}" NAME) | ||
# download the file if we need to | ||
if(NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${_base}") | ||
message(STATUS "Downloading ${_url} -> ${_base}") | ||
file(DOWNLOAD "${_url}" "${CMAKE_CURRENT_SOURCE_DIR}/${_base}" | ||
SHOW_PROGRESS STATUS _rtn TLS_VERIFY OFF) | ||
list(GET _rtn 0 _rtncode) | ||
if(NOT 0 EQUAL _rtncode) | ||
message(FATAL_ERROR ${_rtn}) | ||
endif() | ||
endif() | ||
# extract the file | ||
message(STATUS "Extracting ${_base}") | ||
execute_process(COMMAND ${CMAKE_COMMAND} -E tar xvf "${_base}" | ||
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}") | ||
endif() | ||
endmacro() | ||
|
||
|
||
macro(download_platform _base_url _base_name _ext_src _ext_plat) | ||
# first download the src file | ||
set(_url "${_base_url}/${_base_name}.tar.gz") | ||
set(_checkfile "${_base_name}${_ext_src}") | ||
download_and_extract("${_url}" "${_checkfile}") | ||
# now download the platform specific file | ||
set(_url "${_base_url}/${_base_name}-${PYNE_ASM_PLATFORM}.tar.gz") | ||
set(_checkfile "${_base_name}-${PYNE_ASM_PLATFORM}${_ext_plat}") | ||
download_and_extract("${_url}" "${_checkfile}") | ||
endmacro() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
**Added:** None | ||
|
||
**Changed:** None | ||
|
||
**Deprecated:** None | ||
|
||
**Removed:** | ||
* Code in mesh.py to reshpe a (N,1) to (N, ) array is no longer needed if PR #971 merged | ||
|
||
**Fixed:** None | ||
|
||
**Security:** None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
**Added:** None | ||
|
||
**Changed:** Unit of e_bounds changed from eV to MeV | ||
|
||
**Deprecated:** None | ||
|
||
**Removed:** None | ||
|
||
**Fixed:** None | ||
|
||
**Security:** None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
**Added:** None | ||
|
||
**Changed:** | ||
* Change loop variables to be v for volume elements and e for energy groups (instead of i & j) | ||
* Use bias_mode instead of mode to allow for additional mode types in future | ||
|
||
**Deprecated:** None | ||
|
||
**Removed:** None | ||
|
||
**Fixed:** None | ||
|
||
**Security:** None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
**Added:** None | ||
|
||
**Changed:** | ||
* Correct the wrong mode description comment in pyne/src/source_sampling.h | ||
|
||
**Deprecated:** None | ||
|
||
**Removed:** None | ||
|
||
**Fixed:** None | ||
|
||
**Security:** None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.