Making progress.
Next error involves macros,
and reviewing Kernigen and Ritchie
4.11.2 Macro Substitution
A definition has the form
#define name replacement text
It calls for a macro substitution of the simplest kind-subsequent occurrences of
the token name will be replaced by the replacement...
Non-C programmer here.
I'm using GCC and Gfortran V5.2 (which BTW self compiled perfectly), on Windows7(64).
I'm getting this C error.
rpc/types.h:78:9: error: unknown type name '__u_char'
typedef __u_char u_char;
What does the double underscore do, what does it mean?
Thank you.
Non C programer here.
The headers at the top of a C function are my problem.
From the "compiler/operating-system/effective" point of view, what's the difference between
#include <rpc/xdr.h>
#include "rpc/xdr.h"
Both yield errors.
The compiler can't find the directory in <> version.
The...
I'm running my program from a windowsOS command line window and outputting data and character strings to the same window.
I can write non-advancing output and overwrite the same line via backspaces and writing again (on the same line).
Is it possible, with Fortran, to do an upward vertical...
There's alot of information available about generating moments from a histogram but I haven't found a clear example of
using the statistical moments to approximate the original histogram.
Is there a function that approximates a histogram from its statistical moments?
I'm a new user of gfortran and am wondering how you implement
a non-advancing write.
The following code fragment works fine under IVF.
CLOSE(UNIT=6)
OPEN(UNIT=6, CARRIAGECONTROL='FORTRAN')
DO I = 1, 1000
WRITE(6, 10) '/'
WRITE(6, 10) '-'
WRITE(6, 10)...
I'm trying to get this to work with Gfortran and Windows7.
Anyone have experience with accessing the OS under Seven?
Thanks.
MODULE IFWIN
USE, INTRINSIC :: ISO_C_BINDING
IMPLICIT NONE
PRIVATE
PUBLIC QueryPerformanceCounter
INTERFACE...
Below is a sample of a code that runs with Intel but not GFORTRAN.
Writing a real in binary format is an extension of the Fortran standard.
My Question:
What is the best way to do this?
How do you extract the binary of a real for printing?
Thank you.
IMPLICIT NONE
integer :: ii = 1
real...
Hello Motor Experts,
I'm new to motors.
I'm trying to make an air conditioning scroll compressor QUIET.
The motor has a capacitor wired in.
A signal analyser spectra of the current has really strong harmonic content every 60 Hz, as does an accelerometer mounted on the compressor, and as...
I have a question about phase shifts when integrating or
differentiating in the frequency domain.
To verify my calculations, I generate test cases in the time domain and compare with my frequency domain calculations.
I take velocity data (a single frequency sine wave) and
calculate...
I'm trying to reduce cell count by reducing the
amount of model being meshed.
I've got CAD of an intake manifold consisting of
several runners pulling air from a common plenum.
At this time, I prefer to model just 1 runner,
by trimming the model where it connects with
the plenum.
Which of...
3 versions of the same question.
What is a typical model problem for computational acoustics?
What simple geometry and conditions are considered useful for testing the integrity of an algorithm or SW package?
What are the canonical problems of computational acoustics?
Thank you.
Suppose the following:
1. You have an infinite amount
of periodic data available for post processing.
2. The information of interest is at a
frequency higher than your data-acq card can sample.
3. You are able to cut the data into an infinite number
of single cycle data sets.
4. You...