void _FieldVariable_Print( void* _fieldVariable, Stream* stream ) {
   FieldVariable* self = (FieldVariable*) _fieldVariable;

   Journal_Printf( stream, "FieldVariable - '%s'\n", self->name );
   Stream_Indent( stream );
   _Stg_Component_Print( self, stream );

   Journal_PrintPointer( stream, self->_interpolateValueAt );
   Journal_PrintPointer( stream, self->_getMinGlobalFieldMagnitude );
   Journal_PrintPointer( stream, self->_getMaxGlobalFieldMagnitude );
   Journal_PrintPointer( stream, self->_cacheMinMaxGlobalFieldMagnitude );
   Journal_PrintPointer( stream, self->_getMinAndMaxLocalCoords );
   Journal_PrintPointer( stream, self->_getMinAndMaxGlobalCoords );

   Journal_PrintValue( stream, self->fieldComponentCount );
   Journal_PrintValue( stream, self->dim );
   Journal_PrintBool( stream, self->isCheckpointedAndReloaded);
   #ifdef LAM_MPI
      Journal_PrintPointer( stream, self->communicator );
   #elif  defined( OPEN_MPI )
      Journal_PrintPointer( stream, self->communicator );
   #else
      Journal_PrintValue( stream, self->communicator );
   #endif
   Journal_PrintPointer( stream, self->fieldVariable_Register );
   Stream_UnIndent( stream );
}
Пример #2
0
void _lucViewport_Print( void* viewport, Stream* stream )
{
   lucViewport*          self        = viewport;

   Journal_Printf( stream, "lucViewport: %s\n", self->name );

   Stream_Indent( stream );

   /* Print Parent */
   _Stg_Component_Print( self, stream );

   lucDrawingObject_Register_PrintAllObjects( self->drawingObject_Register, stream );

   Stg_Class_Print( self->camera, stream );

   Journal_PrintValue( stream, self->margin );
   Journal_PrintValue( stream, self->nearClipPlane );
   Journal_PrintValue( stream, self->farClipPlane );

   Journal_PrintString( stream, self->title );
   Journal_PrintBool( stream, self->timestep );
   Journal_PrintBool( stream, self->disabled );

   Stream_UnIndent( stream );
}
Пример #3
0
void _Mesh_Algorithms_Print( void* algorithms, Stream* stream ) {
    Mesh_Algorithms*	self = (Mesh_Algorithms*)algorithms;

    /* Print parent */
    Journal_Printf( stream, "Mesh_Algorithms (ptr): (%p)\n", self );
    _Stg_Component_Print( self, stream );
}
Пример #4
0
void _Mesh_Print( void* mesh, Stream* stream ) {
	Mesh*	self = (Mesh*)mesh;
	
	/* Print parent */
	Journal_Printf( stream, "Mesh (ptr): (%p)\n", self );
	_Stg_Component_Print( self, stream );
}
Пример #5
0
void _DecompTransfer_Print( void* decompTransfer, Stream* stream ) {
	DecompTransfer*	self = (DecompTransfer*)decompTransfer;
	
	/* Set the Journal for printing informations */
	Stream* decompTransferStream;
	decompTransferStream = Journal_Register( InfoStream_Type, "DecompTransferStream" );

	/* Print parent */
	Journal_Printf( stream, "DecompTransfer (ptr): (%p)\n", self );
	_Stg_Component_Print( self, stream );
}
void _FeMesh_Algorithms_Print( void* algorithms, Stream* stream ) {
	FeMesh_Algorithms*	self = (FeMesh_Algorithms*)algorithms;
	
	/* Set the Journal for printing informations */
	Stream* algorithmsStream;
	algorithmsStream = Journal_Register( InfoStream_Type, (Name)"FeMesh_AlgorithmsStream"  );

	/* Print parent */
	Journal_Printf( stream, "FeMesh_Algorithms (ptr): (%p)\n", self );
	_Stg_Component_Print( self, stream );
}
Пример #7
0
void _MeshGenerator_Print( void* meshGenerator, Stream* stream ) {
	MeshGenerator*	self = (MeshGenerator*)meshGenerator;
	
	/* Set the Journal for printing informations */
	Stream* meshGeneratorStream;
	meshGeneratorStream = Journal_Register( InfoStream_Type, "MeshGeneratorStream" );

	/* Print parent */
	Journal_Printf( stream, "MeshGenerator (ptr): (%p)\n", self );
	_Stg_Component_Print( self, stream );
}
Пример #8
0
void _Decomp_Sync_Negotiate_Print( void* negotiate, Stream* stream ) {
	Decomp_Sync_Negotiate*	self = (Decomp_Sync_Negotiate*)negotiate;
	
	/* Set the Journal for printing informations */
	Stream* negotiateStream;
	negotiateStream = Journal_Register( InfoStream_Type, "Decomp_Sync_NegotiateStream" );

	/* Print parent */
	Journal_Printf( stream, "Decomp_Sync_Negotiate (ptr): (%p)\n", self );
	_Stg_Component_Print( self, stream );
}
Пример #9
0
void _Decomp_Sync_Print( void* sync, Stream* stream ) {
	Decomp_Sync*	self = (Decomp_Sync*)sync;
	
	/* Set the Journal for printing informations */
	Stream* syncStream;
	syncStream = Journal_Register( InfoStream_Type, "Decomp_SyncStream" );

	/* Print parent */
	Journal_Printf( stream, "Decomp_Sync (ptr): (%p)\n", self );
	_Stg_Component_Print( self, stream );
}
void _MultigridSolver_Print( void* matrixSolver, Stream* stream ) {
	MultigridSolver*	self = (MultigridSolver*)matrixSolver;
	
	/* Set the Journal for printing informations */
	Stream* matrixSolverStream;
	matrixSolverStream = Journal_Register( InfoStream_Type, (Name)"MultigridSolverStream"  );

	assert( self && Stg_CheckType( self, MultigridSolver ) );

	/* Print parent */
	Journal_Printf( stream, "MultigridSolver (ptr): (%p)\n", self );
	_Stg_Component_Print( self, stream );
}
void _StiffnessMatrixTerm_Print( void* stiffnessMatrixTerm, Stream* stream ) {
	StiffnessMatrixTerm* self = (StiffnessMatrixTerm*)stiffnessMatrixTerm;

	/* General info */
	Journal_Printf( stream, "StiffnessMatrixTerm (ptr): %p\n", self );
	
	/* Print parent */
	_Stg_Component_Print( self, stream );
	
	/* StiffnessMatrixTerm info */
	Journal_Printf( stream, "\tintegrationSwarm (ptr): %p\n", self->integrationSwarm );
	Journal_Printf( stream, "\textraInfo (ptr): %p\n", self->extraInfo );
}
Пример #12
0
void _SwarmDump_Print( void* _swarmDump, Stream* stream ) {
	SwarmDump* self = (SwarmDump*) _swarmDump;
	Index      swarm_I;

	Journal_Printf( stream, "SwarmDump - '%s'\n", self->name );
	Stream_Indent( stream );
	_Stg_Component_Print( self, stream );

	for ( swarm_I = 0 ; swarm_I < self->swarmCount ; swarm_I++ ) {
		Journal_Printf( stream, "Swarm - '%s'\n", self->swarmList[ swarm_I ]->name );
	}

	Stream_UnIndent( stream );
}
Пример #13
0
void _SLE_Solver_Print( void* sleSolver, Stream* stream ) {
	SLE_Solver*		self = (SLE_Solver*)sleSolver;

	_Stg_Component_Print( self, stream );

	Journal_PrintPointer( stream, self->extensionManager );
	
	Journal_PrintPointer( stream, self->_solverSetup );
	Journal_PrintPointer( stream, self->_solve );
	Journal_PrintPointer( stream, self->_getResidual );

	Journal_PrintPointer( stream, self->debug );
	Journal_PrintValue( stream, self->maxIterations );
}
Пример #14
0
void _DofLayout_Print(void* dofLayout, Stream* stream) {
	DofLayout*	self = (DofLayout*)dofLayout;
	
	/* Set the Journal for printing informations */
	Stream* compositeVCStream = stream;
	
	/* General info */
	Journal_Printf( compositeVCStream, "DofLayout (ptr): %p\n", self);
	
	/* Virtual info */
	
	/* Stg_Class info */
	
	/* Print parent */
	_Stg_Component_Print( self, compositeVCStream );
}
Пример #15
0
void _MeshLayout_Print( void* meshLayout, Stream* stream ) {
	MeshLayout* self = (MeshLayout*)meshLayout;
	
	/* Set the Journal for printing informations */
	Stream* meshLayoutStream;
	meshLayoutStream = Journal_Register( InfoStream_Type, "MeshLayoutStream" );

	/* Print parent */
	_Stg_Component_Print( self, stream );
	
	/* General info */
	Journal_Printf( stream, "MeshLayout (ptr): (%p)\n", self );
	
	/* Virtual info */
	
	/* MeshLayout info */
}
Пример #16
0
void _TimeIntegrand_Print( void* timeIntegrand, Stream* stream ) {
	TimeIntegrand* self = (TimeIntegrand*)timeIntegrand;

	/* General info */
	Journal_DPrintf( self->debug, "TimeIntegrand - '%s'\n", self->name );
	Journal_PrintPointer( stream, self );
	Stream_Indent( stream );
	
	/* Print parent */
	_Stg_Component_Print( self, stream );
	
	/* Virtual info */

	/* Regular Info */
	
	Stream_UnIndent( stream );
}
Пример #17
0
void _Remesher_Print( void* remesher, Stream* stream ) {
    Remesher*	self = (Remesher*)remesher;
    Stream*		myStream;

    /* Set the Journal for printing informations */
    myStream = Journal_Register( InfoStream_Type, (Name)"RemesherStream"  );

    /* Print parent */
    _Stg_Component_Print( self, stream );

    /* General info */
    Journal_Printf( myStream, "Remesher (ptr): (%p)\n", self );

    /* Virtual info */

    /* Remesher info */
}
Пример #18
0
void _SwarmVariable_Print( void* _swarmVariable, Stream* stream ) {
	SwarmVariable* self = (SwarmVariable*) _swarmVariable;

	Journal_Printf( stream, "SwarmVariable - '%s'\n", self->name );
	Stream_Indent( stream );
	_Stg_Component_Print( self, stream );

	Journal_PrintPointer( stream, self->_valueAt );
	Journal_PrintPointer( stream, self->_getMinGlobalMagnitude );
	Journal_PrintPointer( stream, self->_getMaxGlobalMagnitude );

	Journal_Printf( stream, "Swarm - '%s'\n", self->swarm->name );
	if ( self->variable != NULL )
		Journal_Printf( stream, "Variable - '%s'\n", self->variable->name );

	Journal_PrintValue( stream, self->dofCount );
	Journal_PrintPointer( stream, self->swarmVariable_Register );
	Stream_UnIndent( stream );
}
void _SolutionVector_Print( void* solutionVector, Stream* stream ) {
	SolutionVector* self = (SolutionVector*)solutionVector;
	
	/* Set the Journal for printing informations */
	Stream* solutionVectorStream = stream;
	
	/* General info */
	Journal_Printf( solutionVectorStream, "SolutionVector (ptr): %p\n", self );
	
	/* Print parent */
	_Stg_Component_Print( self, solutionVectorStream );
	
	/* Virtual info */
	
	/* SolutionVector info */

	Stg_Class_Print( self->feVariable, solutionVectorStream );
	Journal_Printf( solutionVectorStream, "\tComm: %u\n", self->comm );
}
void _PeriodicBoundariesManager_Print( void* perBCsManager, Stream* stream ) {
	PeriodicBoundariesManager*	self = (PeriodicBoundariesManager*)perBCsManager;
	Index								perBoundary_I = 0;
	
	/* General info */
	Journal_Printf( stream, "PeriodicBoundariesManager (ptr): %p\n", self );
	
	/* Print parent */
	_Stg_Component_Print( self, stream );

	Journal_Printf( stream, "%d periodic boundaries registered: %p\n", self );
	Stream_Indent( stream );

	for ( perBoundary_I = 0; perBoundary_I < self->count; perBoundary_I++ ) {
		Journal_Printf( stream, "Boundary %d: Axis %d, Min=%f, Max=%f\n", perBoundary_I,
			self->boundaries[perBoundary_I].axis,
			self->boundaries[perBoundary_I].minWall,
			self->boundaries[perBoundary_I].maxWall );
	}
	Stream_UnIndent( stream );
}
Пример #21
0
void _CellLayout_Print( void* cellLayout, Stream* stream ) {
	CellLayout* self = (CellLayout*)cellLayout;
	
	/* Set the Journal for printing informations */
	Stream* cellLayoutStream = stream;
	
	/* General info */
	Journal_Printf( cellLayoutStream, "CellLayout (ptr): %p\n", self );
	
	/* Print parent */
	_Stg_Component_Print( self, cellLayoutStream );
	
	/* Virtual info */
	Journal_Printf( cellLayoutStream, "\t_cellLocalCount (func ptr): %p\n", self->_cellLocalCount );
	Journal_Printf( cellLayoutStream, "\t_cellShadowCount (func ptr): %p\n", self->_cellShadowCount );
	Journal_Printf( cellLayoutStream, "\t_pointCount (func ptr): %p\n", self->_pointCount );
	Journal_Printf( cellLayoutStream, "\t_initialisePoints (func ptr): %p\n", self->_initialisePoints );
	Journal_Printf( cellLayoutStream, "\t_mapElementIdToCellId (func ptr): %p\n", self->_mapElementIdToCellId );
	Journal_Printf( cellLayoutStream, "\t_isInCell (func ptr): %p\n", self->_isInCell );
	Journal_Printf( cellLayoutStream, "\t_cellOf (func ptr): %p\n", self->_cellOf );
	Journal_Printf( cellLayoutStream, "\t_getShadowInfo (func ptr): %p\n", self->_getShadowInfo );
	
	/* CellLayout info */
}
void _EscapedRoutine_Print( void* escapedRoutine, Stream* stream ) {
	EscapedRoutine* self = (EscapedRoutine*)escapedRoutine;
	
	/* Print parent */
	_Stg_Component_Print( self, stream );
}
void _VariableCondition_Print(void* variableCondition) {
	VariableCondition*					self = (VariableCondition*)variableCondition;
	VariableCondition_VariableIndex	vcVar_I;
	VariableCondition_ValueIndex		val_I;
	Index										i;
	
	/* Set the Journal for printing informations */
	Stream* variableConditionStream = Journal_Register( InfoStream_Type,	"VariableConditionStream");
	
	/* General info */
	Journal_Printf( variableConditionStream, "VariableCondition (ptr): %p\n", self);
	
	/* Print parent */
	_Stg_Component_Print( self, variableConditionStream );
	
	/* Virtual info */
	Journal_Printf( variableConditionStream, "\t_getSet (func ptr): %p\n", self->_getSet);
	Journal_Printf( variableConditionStream, "\t_getVariableCount (func ptr): %p\n", self->_getVariableCount);
	Journal_Printf( variableConditionStream, "\t_getVariableIndex (func ptr): %p\n", self->_getVariableIndex);
	Journal_Printf( variableConditionStream, "\t_getValueIndex (func ptr): %p\n", self->_getValueIndex);
	Journal_Printf( variableConditionStream, "\t_getValueCount (func ptr): %p\n", self->_getValueCount);
	Journal_Printf( variableConditionStream, "\t_getValue (func ptr): %p\n", self->_getValue);
	
	/* Stg_Class info */
	Journal_Printf( variableConditionStream, "\tvariable_Register (ptr): %p\n", self->variable_Register);
	Journal_Printf( variableConditionStream, "\tconFunc_Register (ptr): %p\n", self->conFunc_Register);
	Journal_Printf( variableConditionStream, "\t_set (ptr): %p\n", self->_set);
	Journal_Printf( variableConditionStream, "\tindexCount: %u\n", self->indexCount);
	Journal_Printf( variableConditionStream, "\tindexTbl (ptr): %p\n", self->indexTbl);

	if (self->indexTbl)
		for (i = 0; i < self->indexCount; i++)
			Journal_Printf( variableConditionStream, "\t\tindexTbl[%u]: %u\n", i, self->indexTbl[i]);
	Journal_Printf( variableConditionStream, "\tvcVarCountTbl (ptr): %p\n", self->vcVarCountTbl);
	if (self->vcVarCountTbl)
		for (i = 0; i < self->indexCount; i++)
			Journal_Printf( variableConditionStream, "\t\tvcVarCountTbl[%u]: %u\n", i, self->vcVarCountTbl[i]);
	Journal_Printf( variableConditionStream, "\tvcTbl (ptr): %p\n", self->vcTbl);
	if (self->vcTbl)
		for (i = 0; i < self->indexCount; i++)
			for (vcVar_I = 0; vcVar_I < self->vcVarCountTbl[i]; vcVar_I++)
			{
				Journal_Printf( variableConditionStream, "\t\tvcTbl[%u][%u]:\n", i, vcVar_I);
				Journal_Printf( variableConditionStream, "\t\t\tvarIndex: %u\n", self->vcTbl[i][vcVar_I].varIndex);
				Journal_Printf( variableConditionStream, "\t\t\tvalIndex: %u\n", self->vcTbl[i][vcVar_I].valIndex);
			}
	Journal_Printf( variableConditionStream, "\tvalueCount: %u\n", self->valueCount);
	Journal_Printf( variableConditionStream, "\tvalueTbl (ptr): %p\n", self->valueTbl);
	if( self->valueTbl ) {
		for (val_I = 0; val_I < self->valueCount; val_I++)
		{
			Journal_Printf( variableConditionStream, "\t\tvalueTbl[%u]:\n", val_I);
			switch (self->valueTbl[val_I].type)
			{
				case VC_ValueType_Double:
					Journal_Printf( variableConditionStream, "\t\t\ttype: VC_ValueType_Double\n" );
					Journal_Printf( variableConditionStream, "\t\t\tasDouble: %g\n", self->valueTbl[val_I].as.typeDouble );
					break;
					
				case VC_ValueType_Int:
					Journal_Printf( variableConditionStream, "\t\t\ttype: VC_ValueType_Int\n" );
					Journal_Printf( variableConditionStream, "\t\t\tasInt: %i\n", self->valueTbl[val_I].as.typeInt );
					break;
					
				case VC_ValueType_Short:
					Journal_Printf( variableConditionStream, "\t\t\ttype: VC_ValueType_Short\n" );
					Journal_Printf( variableConditionStream, "\t\t\tasShort: %i\n", self->valueTbl[val_I].as.typeShort );
					break;
					
				case VC_ValueType_Char:
					Journal_Printf( variableConditionStream, "\t\t\ttype: VC_ValueType_Char\n");
					Journal_Printf( variableConditionStream, "\t\t\tasChar: %c\n", self->valueTbl[val_I].as.typeChar );
					break;
					
				case VC_ValueType_Ptr:
					Journal_Printf( variableConditionStream, "\t\t\ttype: VC_ValueType_Ptr\n");
					Journal_Printf( variableConditionStream, "\t\t\tasPtr: %g\n", self->valueTbl[val_I].as.typePtr );
					break;
					
				case VC_ValueType_DoubleArray:
					Journal_Printf( variableConditionStream, "\t\t\ttype: VC_ValueType_DoubleArray\n");
					Journal_Printf( variableConditionStream, "\t\t\tarraySize: %u\n", self->valueTbl[val_I].as.typeArray.size);
					Journal_Printf( variableConditionStream, "\t\t\tasDoubleArray (ptr): %p\n", self->valueTbl[val_I].as.typeArray.array);
					if (self->valueTbl[val_I].as.typeArray.array)
						for (i = 0; i < self->valueTbl[val_I].as.typeArray.size; i++)
							Journal_Printf( variableConditionStream, "\t\t\t\tasDoubleArray[%u]: %g\n", i,
								self->valueTbl[val_I].as.typeArray.array[i]);
					break;
					
				case VC_ValueType_CFIndex:
					Journal_Printf( variableConditionStream, "\t\t\ttype: VC_ValueType_CFIndex\n");
					Journal_Printf( variableConditionStream, "\t\t\tasCFIndex: %u\n", self->valueTbl[val_I].as.typeCFIndex);
					break;
			}
		}
	}
}
Пример #24
0
void  _Codelet_Print( void* codelet, Stream* stream ) {
   Codelet* self = (Codelet*)codelet;
   
   Journal_Printf( stream, "Codelet: %s, Type %s\n", self->name, self->type );
   _Stg_Component_Print( self, stream );
}