Commit 15983efa authored by Martin Bauer's avatar Martin Bauer
Browse files

Grandchem generalization WIP

- started with generalized free energy formulation
parent 5bed1ae5
......@@ -66,6 +66,9 @@ namespace {{namespace}} {
void {{class_name}}::run( IBlock * block, IndexVectors::Type type {% if target == 'gpu'%}, cudaStream_t stream {%endif%})
{
auto * indexVectors = block->getData<IndexVectors>(indexVectorID);
int64_t indexVectorSize = int64_c( indexVectors->indexVector(type).size() );
if( indexVectorSize == 0)
return;
{% if target == 'gpu' -%}
auto pointer = indexVectors->pointerGpu(type);
......@@ -73,10 +76,6 @@ void {{class_name}}::run( IBlock * block, IndexVectors::Type type {% if target =
auto pointer = indexVectors->pointerCpu(type);
{% endif %}
int64_t indexVectorSize = int64_c( indexVectors->indexVector(type).size() );
if( indexVectorSize == 0)
return;
uint8_t * _data_indexVector = reinterpret_cast<uint8_t*>(pointer);
{{kernel|generate_block_data_to_field_extraction(['indexVector', 'indexVectorSize'])|indent(4)}}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment