Commit 7e6b7475 authored by Keith Bennett's avatar Keith Bennett Committed by Keith Bennett

Add support for 3d rays

parent d4137007
Pipeline #6250 passed with stage
in 30 seconds
......@@ -508,28 +508,30 @@ avtSDFFileFormat::PopulateDatabaseMetaData(avtDatabaseMetaData *md)
debug1 << "avtSDFFileFormat:: Stitched beam group: id:" << b->id
<< ", name:" << b->name << endl;
avtMeshMetaData *mmd = new avtMeshMetaData(b->name, 1, 0, 0, 0,
2, 2, AVT_AMR_MESH);
md->SetFormatCanDoDomainDecomposition(false);
mmd->groupTitle = b->id;
mmd->hasSpatialExtents = false;
sdf_block_t *gb, *sb;
vector<string> blockNames, groupNames;
vector<int> groupIds;
int ndims = 0;
for (unsigned int ng = 0 ; ng < b->ndims ; ng++) {
gb = sdf_find_block_by_id(h, b->variable_ids[ng]);
groupNames.push_back(gb->name);
for (unsigned int n = 0 ; n < gb->ndims ; n++) {
sb = sdf_find_block_by_id(h, gb->variable_ids[n]);
ndims = sb->ndims;
blockNames.push_back(sb->id);
groupIds.push_back(ng);
}
}
avtMeshMetaData *mmd = new avtMeshMetaData(b->name, 1, 0, 0, 0,
ndims, ndims, AVT_AMR_MESH);
md->SetFormatCanDoDomainDecomposition(false);
mmd->groupTitle = b->id;
mmd->hasSpatialExtents = false;
mmd->blockTitle = strndup(sb->name, h->string_length);
for (int i = 0 ; i < mmd->blockTitle.length() ; i++) {
if (mmd->blockTitle[i] == '/') {
......
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