-
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 branch '82-milhoja-should-be-able-to-build-without-amrex' into …
…'master' Resolve "Milhoja should be able to build without AMReX" Closes #82 See merge request joneal/OrchestrationRuntime!68
- Loading branch information
Showing
28 changed files
with
114 additions
and
82 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
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
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
#include "Milhoja_RuntimeBackend.h" | ||
|
||
#include <iostream> | ||
#include <stdexcept> | ||
|
||
#include "Milhoja.h" | ||
|
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
53 changes: 53 additions & 0 deletions
53
tools/milhoja_pypkg/src/milhoja/templates/cg-tpl.Tile_cpp2c.cpp
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,53 @@ | ||
#include <iostream> | ||
#include <Milhoja.h> | ||
#include <Milhoja_real.h> | ||
#include <Milhoja_interface_error_codes.h> | ||
#include "_param:data_item_header_file_name" | ||
|
||
extern "C" { | ||
//----- C DECLARATION OF FORTRAN ROUTINE WITH C-COMPATIBLE INTERFACE | ||
int _param:instance( | ||
/* _link:c2f_dummy_args */ | ||
void** wrapper | ||
) { | ||
if (wrapper == nullptr) { | ||
std::cerr << "[_param:instance] wrapper is NULL" << std::endl; | ||
return MILHOJA_ERROR_POINTER_IS_NULL; | ||
} else if (*wrapper != nullptr) { | ||
std::cerr << "[_param:instance] *wrapper not NULL" << std::endl; | ||
return MILHOJA_ERROR_POINTER_NOT_NULL; | ||
} | ||
|
||
try { | ||
*wrapper = static_cast<void*>(new _param:class_name{ | ||
/* _link:constructor_args */ | ||
}); | ||
} catch (const std::exception& exc) { | ||
std::cerr << exc.what() << std::endl; | ||
return MILHOJA_ERROR_UNABLE_TO_CREATE_WRAPPER; | ||
} catch (...) { | ||
std::cerr << "[_param:instance] Unknown error caught" << std::endl; | ||
return MILHOJA_ERROR_UNABLE_TO_CREATE_WRAPPER; | ||
} | ||
return MILHOJA_SUCCESS; | ||
} | ||
|
||
int _param:deletion(void* wrapper) { | ||
if (wrapper == nullptr) { | ||
std::cerr << "[_param:deletion] wrapper is NULL" << std::endl; | ||
return MILHOJA_ERROR_POINTER_IS_NULL; | ||
} | ||
delete static_cast<_param:class_name*>(wrapper); | ||
return MILHOJA_SUCCESS; | ||
} | ||
|
||
int _param:acquire_scratch(void) { | ||
_param:class_name::acquireScratch(); | ||
return MILHOJA_SUCCESS; | ||
} | ||
|
||
int _param:release_scratch(void) { | ||
_param:class_name::releaseScratch(); | ||
return MILHOJA_SUCCESS; | ||
} | ||
} |
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
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
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
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
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
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.